\Imi\Server\SessionSession

Summary

Methods
Properties
Constants
set()
get()
delete()
once()
clear()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

set()

set(string  $name, mixed  $value) : void

设置Session值

Parameters

string $name
mixed $value

get()

get(string  $name = null, mixed  $default = null) : mixed

获取Session值

Parameters

string $name
mixed $default

Returns

mixed

delete()

delete(string  $name) : void

删除Session值

Parameters

string $name

once()

once(string  $name, mixed  $default = false) : mixed

获取一次值后将该值删除,可用于验证码等一次性功能

Parameters

string $name
mixed $default

Returns

mixed

clear()

clear() : void

清空所有Session