We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c823d4 commit affcad0Copy full SHA for affcad0
laravel/session/drivers/driver.php
@@ -55,6 +55,14 @@ public function id()
55
{
56
$session = array();
57
58
+ // If the driver is an instance of the Cookie driver, we are able to
59
+ // just return any string since the Cookie driver has no real idea
60
+ // of a server side persisted session with an ID.
61
+ if ($this instanceof Cookie)
62
+ {
63
+ return Str::random(40);
64
+ }
65
+
66
// We'll containue generating random IDs until we find an ID that is
67
// not currently assigned to a session. This is almost definitely
68
// going to happen on the first iteration.
0 commit comments