private function refreshSession($sid)
    {
        $sessionCookie = session_get_cookie_params();
        $expires = time() + $sessionCookie['lifetime'];

        $this->getDatabase()
            ->update('ActiveSessions')
            ->where('id', $sid)
            ->values([
                'expires' => $expires,
                'updated_at' => Utility::unixToDb(time())
            ])
            ->execute();

        return true;
    }
private function refreshSession($sid)
    {
        $sessionCookie = session_get_cookie_params();
        $expires = time() + $sessionCookie['lifetime'];

        $this->getDatabase()
            ->update('ActiveSessions')
            ->where('id', $sid)
            ->values([
                'expires' => $expires,
                'updated_at' => Utility::unixToDb(time())
            ])
            ->execute();

        return true;
    }
private function refreshSession ( $ sid ) { $ sessionCookie = session_get_cookie_params ( ) ; $ expires = time ( ) + $ sessionCookie [ 'lifetime' ] ; $ this -> getDatabase ( ) -> update ( 'ActiveSessions' ) -> where ( 'id' , $ sid ) -> values ( [ 'expires' => $ expires , 'updated_at' => Utility :: unixToDb ( time ( ) ) ] ) -> execute ( ) ; return true ; }
Refreshes the expiration on an active session.

@param string $sid session ID

@return bool
Refreshes the expiration on an active session .