Session::destroy PHP Method

destroy() public static method

deletes the session (= logs the user out)
public static destroy ( )
    public static function destroy()
    {
        session_destroy();
    }

Usage Example

 public function logoutAction($key = 'user')
 {
     Session::remove($key);
     Session::destroy();
     Session::setFlash(__t('you_logout'));
     $this->redirect("/");
 }
All Usage Examples Of Session::destroy