/** * Clean up expired sessions. * * @return void */ public function clean() { if ($this->storage instanceof \Pimf\Contracts\Cleanable) { $conf = Registry::get('conf'); $this->storage->clean(time() - $conf['session']['lifetime'] * 60); } }
/** * Clean up expired sessions. * * @return void */ public function clean() { if ($this->storage instanceof \Pimf\Contracts\Cleanable) { $this->storage->clean(time() - Config::get('session.lifetime') * 60); } }