add a method to clean the session

This commit is contained in:
<bdauvergne@entrouvert.com> 1209574131 +0200 0001-01-01 00:00:00 +00:00
parent 9d94b1cec5
commit 594dc59de4
1 changed files with 5 additions and 0 deletions

View File

@ -170,6 +170,11 @@ class LassoSPKitUtilsSession {
$this->delete();
$this->id = null;
}
/** Reset the state of the session */
function clean() {
$this->clear();
$this->vars = array();
}
static function logout() {
$athis = self::getSingleton();
$athis->clear();