forked from laysense/laysense.cn
15 lines
413 B
PHP
15 lines
413 B
PHP
<?php
|
|
|
|
return [
|
|
'type' => 'file',
|
|
'handler' => Webman\Session\FileSessionHandler::class,
|
|
'config' => ['file' => ['save_path' => runtime_path() . '/sessions']],
|
|
'session_name' => 'LAYSENSE_CMS',
|
|
'lifetime' => 8 * 60 * 60,
|
|
'cookie_lifetime' => 0,
|
|
'cookie_path' => '/admin',
|
|
'http_only' => true,
|
|
'secure' => getenv('LAYSENSE_SECURE_COOKIES') !== '0',
|
|
'same_site' => 'Lax',
|
|
];
|