public function gc($maxLifeTime)
 {
     ezpEvent::getInstance()->notify('session/gc', array($maxLifeTime));
     $db = eZDB::instance();
     eZSession::triggerCallback('gc_pre', array($db, $maxLifeTime));
     $sfHandler = $this->storage->getSaveHandler();
     if (method_exists($sfHandler, 'gc')) {
         $sfHandler->gc($maxLifeTime);
     }
     eZSession::triggerCallback('gc_post', array($db, $maxLifeTime));
     return false;
 }
Ejemplo n.º 2
0
    /**
     * Remove all session data (Truncate table)
     *
     * @return bool
     */
    public function cleanup()
    {
        ezpEvent::getInstance()->notify( 'session/cleanup', array() );
        $db = eZDB::instance();

        eZSession::triggerCallback( 'cleanup_pre', array( $db ) );
        $db->query( 'TRUNCATE TABLE ezsession' );
        eZSession::triggerCallback( 'cleanup_post', array( $db ) );

        return true;
    }
Ejemplo n.º 3
0
 /**
  * Remove all session data (Truncate table)
  *
  * @return bool
  */
 public function cleanup()
 {
     $db = eZDB::instance();
     eZSession::triggerCallback('cleanup_pre', array($db));
     $db->query('TRUNCATE TABLE ezsession');
     eZSession::triggerCallback('cleanup_post', array($db));
     return true;
 }
Ejemplo n.º 4
0
 /**
  * reimp (not used in this handler)
  */
 public function cleanup()
 {
     $db = eZDB::instance();
     eZSession::triggerCallback('cleanup_pre', array($db));
     eZSession::triggerCallback('cleanup_post', array($db));
     return true;
 }