/** * Get an instance */ public static function getInstance() { if (!isset(self::$cache)) { self::$cache = new self(); } return self::$cache; }
/** * 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()); }
public static function getData() { return sha1(Session::getIp()) . sha1(Session_Request::getUserAgent()) . sha1(Site::getKey(Session::STORAGE_KEY)); }