Skip to content

Commit bc12c12

Browse files
committed
fix: s'assurer que le nom du cookie de session n'a pas d'espace
1 parent e8ef729 commit bc12c12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Session.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ class Session implements SessionInterface
102102
*/
103103
public function __construct(array $config, array $cookie, protected string $ipAddress)
104104
{
105-
$this->config = array_merge($this->config, $config);
105+
$this->config = array_merge($this->config, $config);
106+
$this->config['cookie_name'] = str_replace(' ', '-', strtolower($this->config['cookie_name']));
106107

107108
$this->cookie = Cookie::create(
108109
$this->config['cookie_name'],

0 commit comments

Comments
 (0)