8000 [HttpFoundation] fix session tracking counter · symfony/symfony@d8c336b · GitHub
[go: up one dir, main page]

Skip to content

Commit d8c336b

Browse files
[HttpFoundation] fix session tracking counter
1 parent c36f8cb commit d8c336b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/Symfony/Component/HttpFoundation/Session/Session.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ public function getUsageIndex()
160160
*/
161161
public function isEmpty()
162162
{
163-
++$this->usageIndex;
164163
foreach ($this->data as &$data) {
165164
if (!empty($data)) {
166165
return false;
@@ -185,8 +184,6 @@ public function invalidate($lifetime = null)
185184
*/
186185
public function migrate($destroy = false, $lifetime = null)
187186
{
188-
++$this->usageIndex;
189-
190187
return $this->storage->regenerate($destroy, $lifetime);
191188
}
192189

@@ -195,8 +192,6 @@ public function migrate($destroy = false, $lifetime = null)
195192
*/
196193
public function save()
197194
{
198-
++$this->usageIndex;
199-
200195
$this->storage->save();
201196
}
202197

src/Symfony/Component/HttpFoundation/Session/SessionBagProxy.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public function getBag()
4444
*/
4545
public function isEmpty()
4646
{
47-
++$this->usageIndex;
48-
4947
return empty($this->data[$this->bag->getStorageKey()]);
5048
}
5149

@@ -81,8 +79,6 @@ public function getStorageKey()
8179
*/
8280
public function clear()
8381
{
84-
++$this->usageIndex;
85-
8682
return $this->bag->clear();
8783
}
8884
}

0 commit comments

Comments
 (0)
0