Bluz\Session\Session::setSessionCookieLifetime PHP Метод

setSessionCookieLifetime() публичный Метод

If a session already exists, destroys it (without sending an expiration cookie), regenerates the session ID, and restarts the session.
public setSessionCookieLifetime ( integer $ttl ) : void
$ttl integer TTL in seconds
Результат void
    public function setSessionCookieLifetime($ttl)
    {
        // Set new cookie TTL
        session_set_cookie_params($ttl);
        if ($this->sessionExists()) {
            // There is a running session so we'll regenerate id to send a new cookie
            $this->regenerateId();
        }
    }