Destroying a session

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();

Post a Comment

Required fields are marked *
*
*

%d bloggers like this: