Commit 6590b54f authored by Taylor Otwell's avatar Taylor Otwell

Refactor the session class.

parent 23e86c70
......@@ -65,7 +65,10 @@ class Session {
static::$session = array('id' => Str::random(40), 'data' => array());
}
if ( ! static::has('csrf_token')) static::put('csrf_token', Str::random(16));
if ( ! static::has('csrf_token'))
{
static::put('csrf_token', Str::random(16));
}
static::$session['last_activity'] = time();
}
......
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