customize session_name

This commit is contained in:
namet117 2020-03-16 00:43:40 +08:00
parent 2e20d8d06c
commit 9cfd30f9bc
2 changed files with 2 additions and 1 deletions

View File

@ -18,5 +18,6 @@ return [
'connection' => 'default',
'path' => BASE_PATH . '/runtime/session',
'gc_maxlifetime' => 1200,
'session_name' => 'HYPERF_SESSION_ID',
],
];

View File

@ -39,7 +39,7 @@ class SessionManager
public function getSessionName(): string
{
return 'HYPERF_SESSION_ID';
return $this->config->get('session.options.session_name', 'HYPERF_SESSION_ID');
}
public function start(ServerRequestInterface $request): SessionInterface