restore() 보호된 정적인 메소드

Check if session is valid and is not expired. If no valid session, check cookie keepSession.
protected static restore ( boolean $checkKeepSessionCookie = true, boolean $isAutomaticRequest = false )
$checkKeepSessionCookie boolean If true check cookie keepSession
$isAutomaticRequest boolean If true don't update sessionLastTime
예제 #1
0
 /**
  * @return Scalr_Session
  */
 public static function getInstance()
 {
     if (self::$_session === null) {
         self::$_session = new Scalr_Session();
         self::$_session->hashpwd = Scalr_Util_CryptoTool::hash(@file_get_contents(dirname(__FILE__) . "/../etc/.cryptokey"));
     }
     if (!self::$_session->restored) {
         self::$_session->restored = true;
         Scalr_Session::restore();
     }
     return self::$_session;
 }