/** * 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); }
/** * Get the current session id from the cookie * * @return string */ protected function cookie_session_id() { return \CCCookie::get($this->cookie_name(), false); }