Skip to content

Commit 35f7b4c

Browse files
committed
session names must not be empty
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.
1 parent e641edd commit 35f7b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function testUseSessionGcMaxLifetimeAsTimeToLive()
106106

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

112112
$this->assertTrue((bool) $this->redisClient->exists(self::PREFIX.'id'));

Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testWriteSessionWithLargeTTL()
119119

120120
public function testDestroySession()
121121
{
122-
$this->storage->open('', '');
122+
$this->storage->open('', 'sid');
123123
$this->memcached
124124
->expects($this->once())
125125
->method('delete')

0 commit comments

Comments
 (0)