Migrate Laysense to upstream LaySite 1.4.3 with external site data

This commit is contained in:
2026-11-27 17:47:31 +08:00
parent b8eb9b35eb
commit 1d2cb2ed1e
277 changed files with 9049 additions and 3222 deletions
+4 -2
View File
@@ -1,14 +1,16 @@
<?php
use App\Config\Environment;
return [
'type' => 'file',
'handler' => Webman\Session\FileSessionHandler::class,
'config' => ['file' => ['save_path' => runtime_path() . '/sessions']],
'session_name' => 'LAYSENSE_CMS',
'session_name' => 'LAYSITE_CMS',
'lifetime' => 8 * 60 * 60,
'cookie_lifetime' => 0,
'cookie_path' => '/admin',
'http_only' => true,
'secure' => getenv('LAYSENSE_SECURE_COOKIES') === '1',
'secure' => Environment::get('LAYSITE_SECURE_COOKIES') === '1',
'same_site' => 'Lax',
];