s::restart PHP Method

restart() static public method

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

Usage Example

示例#1
0
文件: auth.php 项目: LucasFyl/korakia
 public function logout()
 {
     s::restart();
     if ($user = panel()->site()->user()) {
         $user->logout();
     }
     go(panel()->urls()->login());
 }
All Usage Examples Of s::restart