Refactor the session class.
This commit is contained in:
parent
23e86c707d
commit
6590b54f44
|
@ -65,7 +65,10 @@ public static function load($id)
|
|||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue