AbleCloud PHP SDK  1.8.x
PHP SDK of AbleCloud API
Public 成员函数 | 所有成员列表
ACPHPSessionMgr类 参考
类 ACPHPSessionMgr 继承关系图:
Inheritance graph
[图例]
ACPHPSessionMgr 的协作图:
Collaboration graph
[图例]

Public 成员函数

 __construct ($name, $version, $context)
 
 close ()
 
 destroy ($session_id)
 
 gc ($maxlifetime)
 
 open ($save_path, $session_name)
 
 read ($session_id)
 
 write ($session_id, $session_data)
 
- Public 成员函数 继承自 ACService
 __construct ($name, $version, $context)
 
 getName ()
 
 getVersion ()
 
 getContext ()
 
 getLastError ()
 

额外继承的成员函数

- Protected 成员函数 继承自 ACService
 resetLastError ($errCode=0, $errMessage='')
 

详细描述

PHP Session存储服务。

构造及析构函数说明

◆ __construct()

ACPHPSessionMgr::__construct (   $name,
  $version,
  $context 
)

构造函数。

参数
$namestring AbleCloud天气服务的名字。
$versionint AbleCloud天气服务的版本。
$contextACContext ACContext对象,表示访问该远程服务所依赖的环境信息。

成员函数说明

◆ close()

ACPHPSessionMgr::close ( )

SessionHandlerInterface定义的接口。

返回
bool

◆ destroy()

ACPHPSessionMgr::destroy (   $session_id)

SessionHandlerInterface定义的接口。

参数
string$session_idSession ID。
返回
bool

◆ gc()

ACPHPSessionMgr::gc (   $maxlifetime)

SessionHandlerInterface定义的接口。

参数
int | string$maxlifetime
返回
bool

◆ open()

ACPHPSessionMgr::open (   $save_path,
  $session_name 
)

SessionHandlerInterface定义的接口。

参数
string$save_path
string$session_name
返回
bool

◆ read()

ACPHPSessionMgr::read (   $session_id)

SessionHandlerInterface定义的接口。

参数
string$session_id
返回
string

◆ write()

ACPHPSessionMgr::write (   $session_id,
  $session_data 
)

SessionHandlerInterface定义的接口。

参数
string$session_id
string$session_data
返回
bool

该类的文档由以下文件生成: