Esempio n. 1
0
 /**
  * Check if a session with the given key already exists
  *
  * @param string		$id		The session id key.
  * @return boool
  */
 public function has($id)
 {
     return (bool) \CCCookie::get($id . $this->cookie_suffix, false);
 }
Esempio n. 2
0
 /**
  * Get the current session id from the cookie
  *
  * @return string
  */
 protected function cookie_session_id()
 {
     return \CCCookie::get($this->cookie_name(), false);
 }