Skip to content

Commit

Permalink
Update Session.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Jun 16, 2022
1 parent c619c87 commit 90bc179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Protocols/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public function gc()
public function __destruct()
{
$this->save();
if (\rand(1, static::$gcProbability[1]) >= static::$gcProbability[0]) {
if (\rand(1, static::$gcProbability[1]) <= static::$gcProbability[0]) {
$this->gc();
}
}
Expand Down Expand Up @@ -438,4 +438,4 @@ class SessionException extends \RuntimeException
}

// Init session.
Session::init();
Session::init();

0 comments on commit 90bc179

Please sign in to comment.