Commit b3cdcb38 authored by Taylor Otwell's avatar Taylor Otwell

tweaking some comments.

parent 866f5d8f
...@@ -274,10 +274,10 @@ class Manager { ...@@ -274,10 +274,10 @@ class Manager {
static::$transporter->put(static::$session['id'], $config); static::$transporter->put(static::$session['id'], $config);
// Some session drivers may implement the Sweeper interface, meaning the // Some session drivers clean-up expired sessions manually; however, since
// driver must do its garbage collection manually. Alternatively, some // this can be an expensive process, it is only performed once in a while.
// drivers such as APC and Memcached are not required to manually // The probability of session garbage collection occuring for any given
// clean up their sessions. // request is controlled by the "sweepage" configuration option.
$sweep = (mt_rand(1, $config['sweepage'][1]) <= $config['sweepage'][0]); $sweep = (mt_rand(1, $config['sweepage'][1]) <= $config['sweepage'][0]);
if ($sweep and static::$driver instanceof Drivers\Sweeper) if ($sweep and static::$driver instanceof Drivers\Sweeper)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment