Destroys the PHP session.
183752
public function destroy()
    {
        $_SESSION = [];
        
        if ($this->cookieJar) {
            $this->cookieJar->remove($this->name());
        } else {
            $params = session_get_cookie_params();
            setcookie($this->name(), '', time() - 42000,
                $params["path"], $params["domain"],
                $params["secure"], $params["httponly"]
            );
        }
        
        session_destroy();
    }
542937
public function kill_session()
    {
        $this->plugins->exec_hook('session_destroy');

        $this->session->kill();
        $_SESSION = array('language' => $this->user->language, 'temp' => true, 'skin' => $this->config->get('skin'));
        $this->user->reset();
    }
274137
public function destroy()
    {
        if ( NULL !== $this->sessionID )
        {
            session_write_close();
        }
        elseif ( NULL === $this->sessionID && $this->strict )
        {
            throw new InvalidSessionException( 'There is no session to close' );
        }
    }
995724
public void destroySession() {
    	JsonObject session = get("session");
        if (session == null) {
            return;
        }

        String sessionId = session.getString("id");
        // remove from the context
        put("session", null);

        if (sessionId == null) {
            return;
        }

        store.destroy(sessionId, new Handler<Object>() {
            @Override
            public void handle(Object error) {
                if (error != null) {
                    // TODO: better handling of errors
                    System.err.println(error);
                }
            }
        });
    }
1085067
public function destroy()
    {
        if ($this->active)
        {
            $this->clear();
            if (session_status() === PHP_SESSION_ACTIVE)
                session_commit();
            $this->active = false;
        }
        return $this;
    }
1007660
public function destroy(): void
	{
		$this->store->delete($this->sessionId);

		$this->response->getCookies()->delete($this->options['name'], $this->options['cookie_options']);

		$this->destroyed = true;
	}
236120
public void destroy() {
		clear();
		this.client.operate(null, key, Operation.put(Bin.asNull(binName)));
	}
920246
public function destroy()
    {
        $this->security->destroy();
        $_SESSION = [];
        setcookie(session_name(), '', 1);
        unset($_COOKIE[session_name()]);
        session_destroy();
    }
34987
public function Destroy ()
	{
		
		// If no session has been started, bail here before session_destroy() errors
		
		$sessionID	= session_id ();
		
		if (empty ($sessionID))
		{
			return FALSE;
		}

		// Cookie Destruction
		
		$cookie	= session_get_cookie_params ();
		
		if ((empty ($cookie['domain'])) && (empty ($cookie['secure'])))
		{
			setcookie (session_name (), '', time () -99999, $cookie['path']);
		}
		elseif (empty ($cookie['secure']))
		{
			setcookie (session_name (), '', time () -99999, $cookie['path'], $cookie['domain']);
		}
		else
		{
			setcookie (session_name (), '', time () -99999, $cookie['path'], $cookie['domain'], $cookie['secure']);
		}
		
		// Session Destruction
		
		$_SESSION	= array ();
		
		return session_destroy ();
		
	}
937785
public function destroy($session_id)
	{
		$key = $this->key($session_id);

		$this->engine->delete($key . '_expire');

		return $this->engine->delete($key);
	}
689825
static function destroy(){
		if( ! self::started() ){
			trigger_error( "Session not started", E_USER_WARNING );
			return;
		}
		if( session_id() !== self::$Session->id ){
			trigger_error( "Wrong session id", E_USER_WARNING );
			return;
		}
		// start new session trashing the old one
		if( ! headers_sent( $file, $line ) ){
			session_regenerate_id( true );
			new PLUGSession();
		}
		// unless it's too late to send a new cookie
		else {			
			session_destroy();
			unset( $_SESSION['PLUGSession'] );
		}
	}
1253679
public function destroy($session_id)
	{
		if (!$this->database->del($this->key($session_id)))
		{
			return false;
		}
		return true;
	}
71683
public function kill_session($sid) {
        if (!$this->servers) {
            return;
        }

        // Go through the list of all servers because
        // we do not know where the session handler put the
        // data.

        foreach ($this->servers as $server) {
            list($host, $port) = $server;
            $memcached = new \Memcached();
            $memcached->addServer($host, $port);
            $memcached->delete($this->prefix . $sid);
            $memcached->quit();
        }
    }
391678
private void destroy() {
        Lock writerLock = ctxLock.writeLock();
        writerLock.lock();
        try {
            if (ctx != 0) {
                if (enableOcsp) {
                    SSLContext.disableOcsp(ctx);
                }

                SSLContext.free(ctx);
                ctx = 0;

                OpenSslSessionContext context = sessionContext();
                if (context != null) {
                    context.destroy();
                }
            }
        } finally {
            writerLock.unlock();
        }
    }
1211110
public function destroy($session_id)
	{
		// Get the database connection object and verify its connected.
		if (!$this->connection->connected())
		{
			return false;
		}

		try
		{
			$query = $this->connection->getQuery()
				->delete('#__session')
				->whereEquals('session_id', $session_id);

			// Remove a session from the database.
			$this->connection->setQuery($query->toString());

			return (boolean) $this->connection->execute();
		}
		catch (Exception $e)
		{
			return false;
		}
	}
980635
public static function destroy()
    {
        if (self::id()) {
            session_unset();
            session_destroy();
            session_write_close();

            if (ini_get('session.use_cookies')) {
                $params = session_get_cookie_params();
                setcookie(
                    session_name(),
                    '',
                    time() - 4200,
                    $params['path'],
                    $params['domain'],
                    $params['secure'],
                    $params['httponly']
                );
            }
        }
    }
838970
function destroy($session_id)
    {

        // deletes the current session id from the database
        $result = $this->_mysql_query('

            DELETE FROM
                ' . $this->table_name . '
            WHERE
                session_id = "' . $this->_mysql_real_escape_string($session_id) . '"

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

        // if anything happened
        // return true
        if ($this->_mysql_affected_rows() !== -1) return true;

        // if something went wrong, return false
        return false;

    }