public function gc($lifetime)
    {
        $sql    = 'DELETE from tbl_sessions where LAST_ACCESSED < DATE_SUB(NOW(), INTERVAL :LIFETIME SECOND)';
        $delete = $this->_db->prepare($sql);
        $count  = $delete->execute(array(':LIFETIME' => $lifetime));

        return true;

    }
public function gc($lifetime)
    {
        $sql    = 'DELETE from tbl_sessions where LAST_ACCESSED < DATE_SUB(NOW(), INTERVAL :LIFETIME SECOND)';
        $delete = $this->_db->prepare($sql);
        $count  = $delete->execute(array(':LIFETIME' => $lifetime));

        return true;

    }
public function gc ( $ lifetime ) { $ sql = 'DELETE from tbl_sessions where LAST_ACCESSED < DATE_SUB(NOW(), INTERVAL :LIFETIME SECOND)' ; $ delete = $ this -> _db -> prepare ( $ sql ) ; $ count = $ delete -> execute ( array ( ':LIFETIME' => $ lifetime ) ) ; return true ; }
Garbage collection causes all expired sessions to be deleted.

@param mixed $lifetime The max-lifetime of the session.

@access public
@return void
Garbage collection causes all expired sessions to be deleted .