Topic: Experiencing frequent and unexpected logouts from the application

I'm experiencing frequent and unexpected logouts from the application, even after adjusting the timeout settings in my profile. Despite the increased duration, I'm still being automatically logged out while actively using application.

Re: Experiencing frequent and unexpected logouts from the application

Its a good idea to mention your environment.
Also
1. Remove Browser cache.
2. Use different browser.
3. https://frontaccounting.com/punbb/viewtopic.php?id=8570
4. Use debug and look into errors.log

3 (edited by boxygen 10/23/2024 06:32:12 am)

Re: Experiencing frequent and unexpected logouts from the application

In session.inc comment out following lines

function preventHijacking()
    {
        if (!isset($_SESSION['IPaddress']) || !isset($_SESSION['userAgent']))
            return false;

        // if ($_SESSION['IPaddress'] != $_SERVER['REMOTE_ADDR'])
        //     return false;
    
        // if ( $_SESSION['userAgent'] != @$_SERVER['HTTP_USER_AGENT'])
        //     return false;

        return true;
    }
www.boxygen.pk

Re: Experiencing frequent and unexpected logouts from the application

thanks Boxygen, your solution is working fine.

I have injected said code in session.inc file. its working fine now.

Thanks again.