Skip to content

Commit

Permalink
session names must not be empty
Browse files Browse the repository at this point in the history
The changes done in #58453 were not enough. Since the session name is used
as the cookie name it must not be the empty string.
  • Loading branch information
xabbuh committed Oct 10, 2024
1 parent e641edd commit 35f7b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function testUseSessionGcMaxLifetimeAsTimeToLive()

public function testDestroySession()
{
$this->storage->open('', '');
$this->storage->open('', 'test');
$this->redisClient->set(self::PREFIX.'id', 'foo');

$this->assertTrue((bool) $this->redisClient->exists(self::PREFIX.'id'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function testWriteSessionWithLargeTTL()

public function testDestroySession()
{
$this->storage->open('', '');
$this->storage->open('', 'sid');
$this->memcached
->expects($this->once())
->method('delete')
Expand Down

0 comments on commit 35f7b4c

Please sign in to comment.