\Imi\Server\SessionSessionConfig

Summary

Methods
Properties
Constants
__construct()
$name
$cookie
$gcProbability
$maxLifeTime
$prefix
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

session名称

Type

string

$gcProbability

$gcProbability : float

每次请求完成后触发垃圾回收的概率,默认为1% 可取值0~1.0,概率为0%~100%

Type

float

$maxLifeTime

$maxLifeTime : integer

最大存活时间,默认30天,单位秒

Type

integer

$prefix

$prefix : string

Session 前缀

Type

string

Methods

__construct()

__construct(\Imi\Server\Session\string  $name = 'imisid', \Imi\Server\Session\SessionCookie  $cookie = null, \Imi\Server\Session\float  $gcProbability = 0.01, \Imi\Server\Session\int  $maxLifeTime = 86400 * 30, \Imi\Server\Session\string  $prefix = null) 

Parameters

\Imi\Server\Session\string $name
\Imi\Server\Session\SessionCookie $cookie
\Imi\Server\Session\float $gcProbability
\Imi\Server\Session\int $maxLifeTime
\Imi\Server\Session\string $prefix