forked from laysense/laysite
17 lines
450 B
PHP
17 lines
450 B
PHP
<?php
|
|
|
|
use App\Config\Environment;
|
|
|
|
return [
|
|
'type' => 'file',
|
|
'handler' => Webman\Session\FileSessionHandler::class,
|
|
'config' => ['file' => ['save_path' => runtime_path() . '/sessions']],
|
|
'session_name' => 'LAYSITE_CMS',
|
|
'lifetime' => 8 * 60 * 60,
|
|
'cookie_lifetime' => 0,
|
|
'cookie_path' => '/admin',
|
|
'http_only' => true,
|
|
'secure' => Environment::get('LAYSITE_SECURE_COOKIES') === '1',
|
|
'same_site' => 'Lax',
|
|
];
|