Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6f097a0

Browse filesBrowse files
xabbuhsymfonyaml
authored and
symfonyaml
committed
session names must not be empty
The changes done in symfony#58453 were not enough. Since the session name is used as the cookie name it must not be the empty string.
1 parent 4edcadd commit 6f097a0
Copy full SHA for 6f097a0

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php
+1-1Lines changed: 1 addition & 1 deletion
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'));

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.