$handler $handler : \think\contract\SessionHandlerInterface Type \think\contract\SessionHandlerInterface
__construct() __construct( $name, \think\contract\SessionHandlerInterface $handler, array $serialize = null) Parameters $name \think\contract\SessionHandlerInterface $handler array $serialize
set() set(string $name, mixed $value) : void session设置 Parameters string $name session名称 mixed $value session值
get() get(string $name, mixed $default = null) : mixed session获取 Parameters string $name session名称 mixed $default 默认值 Returns mixed
flash() flash(string $name, mixed $value) : void session设置 下一次请求有效 Parameters string $name session名称 mixed $value session值