示例#1
0
文件: Cookie.php 项目: clancats/core
 /**
  * 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);
 }
示例#2
0
文件: Manager.php 项目: clancats/core
 /**
  * Get the current session id from the cookie
  *
  * @return string
  */
 protected function cookie_session_id()
 {
     return \CCCookie::get($this->cookie_name(), false);
 }