s::restart PHP Méthode

restart() static public méthode

Destroys a session first and then starts it again
static public restart ( )
    static function restart()
    {
        self::destroy();
        self::start();
    }

Usage Example

Exemple #1
0
 public function logout()
 {
     s::restart();
     if ($user = panel()->site()->user()) {
         $user->logout();
     }
     go(panel()->urls()->login());
 }
All Usage Examples Of s::restart