清空Session
static void
clear
()
清空Session
static void
clearLocal
()
销毁Session
static void
destroy
()
检测SessionID
static void
detectID
()
取得当前项目的Session 值
返回之前设置
static boolean
get
(string $name)
当前Session文件名
static string
getFilename
()
取得当前项目的Session 值
返回之前设置
static boolean
getLocal
(string $name)
设置或者获取当前SessionID
static void
id
([string $id = null])
检查Session 是否过期
static boolean
isExpired
()
检查Session 是否闲置
static void
isIdle
()
检查Session 是否新建
static boolean
isNew
(boolean $useCookies)
-
boolean
$useCookies: 是否使用cookie
检查Session 值是否已经设置
static boolean
is_set
(string $name)
检查Session 值是否已经设置
static boolean
is_setLocal
(string $name)
设置或者获取 Session localname
static string
localName
([string $name = null])
设置或者获取当前Session name
static string
name
([string $name = null])
设置或者获取当前Session保存路径
static string
path
([string $path = null])
暂停Session
static void
pause
()
取得Session 有效时间
static void
sessionValidThru
()
设置当前项目的Session 值
返回之前设置
static boolean
set
(string $name, mixed $value)
-
string
$name
-
mixed
$value
设置Session 对象反序列化时候的回调函数
返回之前设置
static boolean
setCallback
([string $callback = null])
-
string
$callback: 回调函数方法名
设置Session cookie_domain
返回之前设置
static string
setCookieDomain
([string $sessionDomain = null])
设置Session 过期时间
static void
setExpire
(integer $time, [boolean $add = false])
-
integer
$time: 过期时间
-
boolean
$add: 是否为增加时间
设置Session gc_maxlifetime值
返回之前设置
static string
setGcMaxLifetime
([ $gcMaxLifetime = null], string $gc_maxlifetime)
-
string
$gc_maxlifetime
-
$gcMaxLifetime
设置Session gc_probability 值
返回之前设置
static string
setGcProbability
([ $gcProbability = null], string $gc_maxlifetime)
-
string
$gc_maxlifetime
-
$gcProbability
设置Session 闲置时间
static void
setIdle
(integer $time, [boolean $add = false])
-
integer
$time: 闲置时间
-
boolean
$add: 是否为增加时间
设置当前项目的Session 值
返回之前设置
static boolean
setLocal
(string $name, mixed $value)
-
string
$name
-
mixed
$value
启动Session
static void
start
()
更新Session 闲置时间
static void
updateIdle
()
设置Session 是否使用cookie
返回之前设置
static boolean
useCookies
([boolean $useCookies = null])
-
boolean
$useCookies: 是否使用cookie
设置Session use_trans_sid
返回之前设置
static string
useTransSID
([string $useTransSID = null])