Skip to content

Commit 20e8419

Browse files
committed
regenerate the token on session regeneration
1 parent ed0a327 commit 20e8419

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Illuminate/Session/Store.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ public function invalidate()
475475
*/
476476
public function regenerate($destroy = false)
477477
{
478-
return $this->migrate($destroy);
478+
return tap($this->migrate($destroy), function () {
479+
$this->regenerateToken();
480+
});
479481
}
480482

481483
/**

0 commit comments

Comments
 (0)