Exemplo n.º 1
0
 /**
  * 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);
     }
 }
Exemplo n.º 2
0
 /**
  * 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);
     }
 }