Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16954 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16954 Rev 16971
Línea 69... Línea 69...
69
     * {@inheritDoc}
69
     * {@inheritDoc}
70
     * @see SessionHandlerInterface::gc()
70
     * @see SessionHandlerInterface::gc()
71
     */
71
     */
72
    public function gc(int $max_lifetime) : int 
72
    public function gc(int $max_lifetime) : int 
73
    {
73
    {
74
        return $this->sessionMapper->deleteAllExpired($max_lifetime);
74
        if($this->sessionMapper->deleteAllExpired($max_lifetime)) {
-
 
75
            return $this->sessionMapper->getAffectedRows();
-
 
76
        } else {
-
 
77
            return 0;
-
 
78
        }
75
    }
79
    }
Línea 76... Línea 80...
76
    
80
    
77
    /**
81
    /**
78
     * 
82
     *