gc

@param string $past

@return  bool
7840
public function gc($past)
    {
        $query = $this->db->getQuery(true);
        $query->delete($this->db->quoteName($this->options['table']))
            ->where($this->db->quoteName($this->options['time_col']) . ' < ' . $this->db->quote((int) $past));

        // Remove expired sessions from the database.
        $this->db->setQuery($query);

        return (bool) $this->db->execute();
    }
1073232
public function gc($maxlifetime)
    {
        $sql = 'DELETE FROM ' . $this->config['name']
            . ' WHERE ' . $this->config['modifiedColumn'] . ' + ' . $this->config['lifetimeColumn'] . ' < ?';

        $this->query($sql, array(time()));

        return true;
    }
812786
public function gc(int $maxlifetime) : bool
    {
        static $stmt;
        if (!isset($stmt)) {
            $stmt = $this->pdo->prepare(
                "DELETE FROM cesession_session WHERE dateactive < ?"
            );
        }
        $stmt->execute([date('Y-m-d H:i:s', strtotime("-$maxlifetime second"))]);
        return ($affectedRows = $stmt->rowCount()) && $affectedRows;
    }
4200
protected static function isReservedPrecededByDotCharacter($previous)
    {
        return !$previous || !isset($previous[Tokenizer::TOKEN_VALUE]) || $previous[Tokenizer::TOKEN_VALUE] !== '.';
    }
164229
function gc()
    {

        // deletes expired sessions from database
        $result = $this->_mysql_query('

            DELETE FROM
                ' . $this->table_name . '
            WHERE
                session_expire < "' . $this->_mysql_real_escape_string(time()) . '"

        ') or die($this->_mysql_error());

    }
1315389
public function gc($maxlifetime)
    {
        foreach (glob("{$this->savePath}*") as $file) {
            if (filemtime($file) + $maxlifetime < time() && file_exists($file)) {
                unlink($file);
            }
        }

        return true;
    }
281924
public function gc($maxlifetime)
    {
        $sessions = \Doctrine::getTable($this->_tableName)->findAll();
        foreach ($sessions as $session) {
            if ($this->_getExpirationTime($session) < time()) {
                $session->delete();
            }
        }

        return true;
    }
634732
private function gc()
    {
        foreach (array_keys($this->cache) as $key) {
            if ($this->isOutdated($key, time())) {
                $this->remove($key);
            }
        }
    }
390342
public static function isTemporaryDomain(string $domain): bool
    {
        if (self::$domainsTemporary === null) {
            self::$domainsTemporary = self::getData('domainsTemporary');
        }

        if (\in_array($domain, self::$domainsTemporary, true)) {
            return true;
        }

        if (\preg_match('/.*\.(?:tk|ml|ga|cf|gq)$/si', $domain)) {
            return true;
        }

        return false;
    }
1267466
public function previous()
    {
        if(!$this->request)
            throw new NotFoundException('Http Request does not exist.');

        $referer = $this->request->getHeaderLine('referer');

        return $referer ? : false;
    }
826686
public function handler_gc($ignored_maxlifetime) {
        // This should do something only if cron is not running properly...
        if (!$stalelifetime = ini_get('session.gc_maxlifetime')) {
            return true;
        }
        $params = array('purgebefore' => (time() - $stalelifetime));
        $this->database->delete_records_select('sessions', 'userid = 0 AND timemodified < :purgebefore', $params);
        return true;
    }
810729
public function prev()
    {
        $entity = $this->_parent->{$this->_through}->prev();
        if ($entity) {
            return $entity->{$this->_using};
        }
    }
948837
protected function checkBefore($before)
    {
        $hook = Container::get('hook');

        foreach ((array)$before as $behavior) {
            $result = $hook->exec($behavior);

            if (false === $result) {
                return false;
            }
        }
    }
66309
public function gc( $time )
	{
		// if we don't have the last active key we cannot execute 
		// the garbage collection
		if ( !in_array( 'last_active', $this->index_fields ) )
		{
			return false;
		}
		
		\DB::delete( $this->table )
			->where( 'last_active', '<', time() - $time )
			->run( $this->database );
	}
568534
public function gc($maxlifetime)
    {
        foreach ($this->sessions as $session_id => $content) {
            if ($this->sessions[$session_id]['time'] <= $this->createTimestamp()) {
                $this->destroy($session_id);
            }
        }

        return true;
    }
1301307
public function gc($maxlifetime)
    {
        $timestamp = time() - $maxlifetime;

        if ($this->disableLog) {
            Log::temporaryDisable('sql');
        }

        try {
            $this->getAdapter()->delete($this->getTableName())->where('time', '<', $timestamp)->exec();
            return true;

        } catch (DbException $e) {
            Log::emergency($e);
            return false;

        } finally {
            if ($this->disableLog) {
                Log::restoreTemporaryDisablement();
            }
        }
    }
675693
public function prev()
    {
        $value = prev($this->_data);
        return key($this->_data) !== null ? $value : null;
    }