start()
start() : void
+---------------------------------------------------------- 启动Session +----------------------------------------------------------
+------------------------------------------------------------------------------ Session管理类 +------------------------------------------------------------------------------
name(string $name = null) : string
+---------------------------------------------------------- 设置或者获取当前Session name +----------------------------------------------------------
string | $name | session名称 +---------------------------------------------------------- |
返回之前的Session name +----------------------------------------------------------
path(string $path = null) : string
+---------------------------------------------------------- 设置或者获取当前Session保存路径 +----------------------------------------------------------
string | $path | 保存路径名 +---------------------------------------------------------- |
+----------------------------------------------------------
setExpire(integer $time, boolean $add = false) : void
+---------------------------------------------------------- 设置Session 过期时间 +----------------------------------------------------------
integer | $time | 过期时间 |
boolean | $add | 是否为增加时间 +---------------------------------------------------------- |
setIdle(integer $time, boolean $add = false) : void
+---------------------------------------------------------- 设置Session 闲置时间 +----------------------------------------------------------
integer | $time | 闲置时间 |
boolean | $add | 是否为增加时间 +---------------------------------------------------------- |
setCallback(string $callback = null) : boolean
+---------------------------------------------------------- 设置Session 对象反序列化时候的回调函数 返回之前设置 +----------------------------------------------------------
string | $callback | 回调函数方法名 +---------------------------------------------------------- |
+----------------------------------------------------------
useCookies(boolean $useCookies = null) : boolean
+---------------------------------------------------------- 设置Session 是否使用cookie 返回之前设置 +----------------------------------------------------------
boolean | $useCookies | 是否使用cookie +---------------------------------------------------------- |
+----------------------------------------------------------
getLocal(string $name) : boolean
+---------------------------------------------------------- 取得当前项目的Session 值 返回之前设置 +----------------------------------------------------------
string | $name | +---------------------------------------------------------- |
+----------------------------------------------------------
get(string $name) : boolean
+---------------------------------------------------------- 取得当前项目的Session 值 返回之前设置 +----------------------------------------------------------
string | $name | +---------------------------------------------------------- |
+----------------------------------------------------------
setLocal(string $name, mixed $value) : boolean
+---------------------------------------------------------- 设置当前项目的Session 值 返回之前设置 +----------------------------------------------------------
string | $name | |
mixed | $value | +---------------------------------------------------------- |
+----------------------------------------------------------
set(string $name, mixed $value) : boolean
+---------------------------------------------------------- 设置当前项目的Session 值 返回之前设置 +----------------------------------------------------------
string | $name | |
mixed | $value | +---------------------------------------------------------- |
+----------------------------------------------------------
is_setLocal(string $name) : boolean
+---------------------------------------------------------- 检查Session 值是否已经设置 +----------------------------------------------------------
string | $name | +---------------------------------------------------------- |
+----------------------------------------------------------
is_set(string $name) : boolean
+---------------------------------------------------------- 检查Session 值是否已经设置 +----------------------------------------------------------
string | $name | +---------------------------------------------------------- |
+----------------------------------------------------------
localName(string $name = null) : string
+---------------------------------------------------------- 设置或者获取 Session localname +----------------------------------------------------------
string | $name | +---------------------------------------------------------- |
+----------------------------------------------------------
useTransSID(string $useTransSID = null) : string
+---------------------------------------------------------- 设置Session use_trans_sid 返回之前设置 +----------------------------------------------------------
string | $useTransSID | +---------------------------------------------------------- |
+----------------------------------------------------------
setCookieDomain(string $sessionDomain = null) : string
+---------------------------------------------------------- 设置Session cookie_domain 返回之前设置 +----------------------------------------------------------
string | $sessionDomain | +---------------------------------------------------------- |
+----------------------------------------------------------
setGcMaxLifetime( $gcMaxLifetime = null) : string
+---------------------------------------------------------- 设置Session gc_maxlifetime值 返回之前设置 +----------------------------------------------------------
$gcMaxLifetime |
+----------------------------------------------------------
setGcProbability( $gcProbability = null) : string
+---------------------------------------------------------- 设置Session gc_probability 值 返回之前设置 +----------------------------------------------------------
$gcProbability |
+----------------------------------------------------------