文件¶
文件方式 Session 处理器
| 属性 | 值 |
|---|---|
| 命名空间 | fize\session\handler |
| 类名 | File |
| 实现接口 | SessionHandlerInterface |
| 方法: |
|---|
| 方法名 | 说明 |
|---|---|
| __construct() | 构造 |
| open() | 打开 session |
| close() | 关闭 session |
| read() | 读取 Session |
| write() | 写入 Session |
| destroy() | 删除 Session |
| gc() | 垃圾回收 Session |
方法¶
open()¶
打开 session
public function open (
string $save_path,
string $session_name
) : bool
| 参数: |
|
|---|
write()¶
写入 Session
public function write (
string $session_id,
string $session_data
) : bool
| 参数: |
|
|---|
destroy()¶
删除 Session
public function destroy (
string $session_id
) : bool
| 参数: |
|
|---|