Skip to content

Commit

Permalink
Fix session id collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Aug 31, 2016
1 parent ba7a37f commit 5249b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Session/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function isValidId($id)
*/
protected function generateSessionId()
{
return sha1(uniqid('', true).Str::random(25).microtime(true));
return Str::random(40);
}

/**
Expand Down

0 comments on commit 5249b8e

Please sign in to comment.