Beispiel #1
0
 /**
  * Get an instance
  */
 public static function getInstance()
 {
     if (!isset(self::$cache)) {
         self::$cache = new self();
     }
     return self::$cache;
 }
Beispiel #2
0
 /**
  * Generate and return a unique session id
  *
  * @return string
  */
 private function generateSessionId()
 {
     //< 'sp'-identifier required by gc_sessions
     return "sp" . sha1($this->client . Site::getKey('session')) . sha1(Session_Request::getUserAgent() . self::getIp());
 }
Beispiel #3
0
 public static function getData()
 {
     return sha1(Session::getIp()) . sha1(Session_Request::getUserAgent()) . sha1(Site::getKey(Session::STORAGE_KEY));
 }