Destroying a session

Published on and tagged with cakephp  feature

An often asked question is how to destroy a session with CakePHP. In the latest version in the trunk (version 1.0.1.2767), a destroy() function has been added to the session component. The usage is simple:
$this->Session->destroy();

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License