mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-01 11:17:54 +08:00
customize session_name
This commit is contained in:
parent
2e20d8d06c
commit
9cfd30f9bc
@ -18,5 +18,6 @@ return [
|
||||
'connection' => 'default',
|
||||
'path' => BASE_PATH . '/runtime/session',
|
||||
'gc_maxlifetime' => 1200,
|
||||
'session_name' => 'HYPERF_SESSION_ID',
|
||||
],
|
||||
];
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user