Esempio n. 1
0
 /**
  * Garbage collecting the session old files.
  *
  * @param int $maxLifetime
  *
  * @return void
  */
 public function gc($maxLifetime)
 {
     parent::gc($maxLifetime);
 }
Esempio n. 2
0
 /**
  * Garbage Collection - remove old session data older
  * than $maxLifetime (in seconds)
  *
  * @param int $maxLifetime
  * @return bool
  */
 public function gc($maxLifetime)
 {
     return $this->saveHandlerAdapter->gc($maxLifetime);
 }
Esempio n. 3
0
 public function gc($maxlifetime)
 {
     return parent::gc($maxlifetime);
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 public function gc($maxlifetime)
 {
     return (bool) $this->handler->gc($maxlifetime);
 }
Esempio n. 5
0
<?php

ini_set('session.save_handler', 'files');
$x = new SessionHandler();
$x->gc(1);
 /**
  * Wrapper for garbage collection
  */
 public function gc($maxlifetime)
 {
     // notify wrapper about garbage collection call
     $this->wrapper->gc($maxlifetime);
     return parent::gc($maxlifetime);
 }