Ejemplo n.º 1
0
 /**
  * destroy() - This is used to destroy session data, and optionally, the session cookie itself
  *
  * @param bool $remove_cookie - OPTIONAL remove session id cookie, defaults to true (remove cookie)
  * @param bool $readonly - OPTIONAL remove write access (i.e. throw error if Zend_Session's attempt writes)
  * @return void
  */
 public static function destroy($remove_cookie = true, $readonly = true)
 {
     if (self::$_destroyed) {
         return;
     }
     session_destroy();
     self::$_destroyed = true;
     if ($remove_cookie) {
         self::expireSessionCookie();
     }
 }