cleaning up code and comments.

This commit is contained in:
Taylor Otwell
2012-04-05 21:40:56 -05:00
parent a77196db86
commit 825e8b2d49
3 changed files with 8 additions and 11 deletions

View File

@@ -298,10 +298,9 @@ class Payload {
// session on the user's subsequent requests to the application.
$this->cookie($config);
// Some session drivers implement the Sweeper interface, meaning that
// Some session drivers implement the Sweeper interface meaning that
// they must clean up expired sessions manually. If the driver is a
// sweeper, we need to determine if garbage collection should be
// run for the request.
// sweeper, we'll calculate if we need to run garbage collection.
$sweepage = $config['sweepage'];
if ($this->driver instanceof Sweeper and (mt_rand(1, $sweepage[1]) <= $sweepage[0]))