选择语言 :

Core_Cookie

Cookie

author
呼吸二氧化碳 jonwang@myqee.com
category
MyQEE
package
System
subpackage
Core
copyright
Copyright © 2008-2013 myqee.com
license
http://www.myqee.com/license.html

$this->__construct( )


Cookie::get( $name )

获取指定key的Cookie内容

参数列表

参数 类型 描述 默认值
$name string $name
返回值
  • mixed

Cookie::set( $name , $value = null, $expire = null, $path = '/', $domain = null, $secure = null, $httponly = null)

创建cookie 详细请参考setcookie函数参数

参数列表

参数 类型 描述 默认值
$name string/array $name
$value string $value null
$expire number $expire null
$path string $path string(1) "/"
$domain string $domain null
$secure boolean $secure null
$httponly boolean $httponly null
返回值
  • boolean true/false

Cookie::delete( $name , $path = '/', $domain = null)

删除cookie

参数列表

参数 类型 描述 默认值
$name string Cookie名称
$path string Cookie路径 string(1) "/"
$domain string Cookie作用域 null
返回值
  • boolean true/false

Cookie::check_domain( & $domain )

校验domain

处理当domain为IP+端口的形式

参数列表

参数 类型 描述 默认值
$domain string $domain