loginRequire() public static method

验证登录
public static loginRequire ( ) : boolean
return boolean
Beispiel #1
0
 function home()
 {
     $this->session->start();
     Swoole\Auth::loginRequire();
     $this->display('user/home.php');
 }
Beispiel #2
0
 function __construct($swoole)
 {
     parent::__construct($swoole);
     Swoole::$php->session->start();
     Swoole\Auth::loginRequire();
 }
Beispiel #3
0
 function home()
 {
     $this->session->start();
     var_dump($_SESSION);
     Swoole\Auth::loginRequire();
 }