src/web/Session.php
public function close(): void {
        if ($this->is_active()) {

            // Set the last active timestamp
            $this->_data['last_active'] = time();

            // Write and close the session
            config('debug') ? session_write_close() : @session_write_close();
        }
    }
public function close(): void {
        if ($this->is_active()) {

            // Set the last active timestamp
            $this->_data['last_active'] = time();

            // Write and close the session
            config('debug') ? session_write_close() : @session_write_close();
        }
    }
public function close ( ) : void { if ( $ this -> is_active ( ) ) { // Set the last active timestamp $ this -> _data [ 'last_active' ] = time ( ) ; // Write and close the session config ( 'debug' ) ? session_write_close ( ) : @ session_write_close ( ) ; } }
Sets the last_active timestamp and saves the session.

$session->close();

[!!] Any errors that occur during session writing will be logged,
but not displayed, because sessions are written after output has
been sent.
Sets the last_active timestamp and saves the session .