Example #1
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());
 }
Example #2
0
 public static function getData()
 {
     return sha1(Session::getIp()) . sha1(Session_Request::getUserAgent()) . sha1(Site::getKey(Session::STORAGE_KEY));
 }