SessionHandler
└─Redis
public class Redis
extends SessionHandler
| Constructor Summary | |
|---|---|
| void | __construct(mixed config) |
| Method Summary | |
|---|---|
| bool | open(string savePath, mixed sessName) 打开Session |
| void | close() 关闭Session |
| bool|string | read(string sessID) 读取Session |
| bool | write(string sessID, String sessData) 写入Session |
| bool|void | destroy(string sessID) 删除Session |
| bool | gc(string sessMaxLifeTime) Session 垃圾回收 |
public void __construct(mixed config)
public bool open(string savePath, mixed sessName)
打开Session
public void close()
关闭Session
public bool|string read(string sessID)
读取Session
public bool write(string sessID, String sessData)
写入Session
public bool|void destroy(string sessID)
删除Session
public bool gc(string sessMaxLifeTime)
Session 垃圾回收