PHP Class SessionDb, thinksns

Show file Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

Property Type Description
$hander 数据库句柄
$lifeTime Session有效时间
$sessionTable session保存的数据库名

Public Methods

Method Description
close ( ) 关闭Session
destroy ( string $sessID ) 删除Session
execute ( ) 打开Session
gc ( string $sessMaxLifeTime ) Session 垃圾回收
open ( string $savePath, mixed $sessName ) 打开Session
read ( string $sessID ) 读取Session
write ( string $sessID, String $sessData ) 写入Session

Method Details

close() public method

关闭Session
public close ( )

destroy() public method

删除Session
public destroy ( string $sessID )
$sessID string

execute() public method

打开Session
public execute ( )

gc() public method

Session 垃圾回收
public gc ( string $sessMaxLifeTime )
$sessMaxLifeTime string

open() public method

打开Session
public open ( string $savePath, mixed $sessName )
$savePath string
$sessName mixed

read() public method

读取Session
public read ( string $sessID )
$sessID string

write() public method

写入Session
public write ( string $sessID, String $sessData )
$sessID string
$sessData String

Property Details

$hander protected property

数据库句柄
protected $hander

$lifeTime protected property

Session有效时间
protected $lifeTime

$sessionTable protected property

session保存的数据库名
protected $sessionTable