PHP Class SessionDb, thinksns

Afficher le fichier Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

Свойство Type Description
$hander 数据库句柄
$lifeTime Session有效时间
$sessionTable session保存的数据库名

Méthodes publiques

Méthode 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 méthode

关闭Session
public close ( )

destroy() public méthode

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

execute() public méthode

打开Session
public execute ( )

gc() public méthode

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

open() public méthode

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

read() public méthode

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

write() public méthode

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

Property Details

$hander protected_oe property

数据库句柄
protected $hander

$lifeTime protected_oe property

Session有效时间
protected $lifeTime

$sessionTable protected_oe property

session保存的数据库名
protected $sessionTable