After inactivity of 20 mins on a page, the session must expire and redirect to Login Page again automatically.
How can I implement the same?
Hi,
OutSystems do it automatically. Please, look through the article.
The session timeout specifies the period of time that a session can remain idle, without any end-user interaction, before the Platform Server ends the session automatically.
The default value for the session timeout is 20 minutes and this value can be configured in machine.config file.
machine.config
Nikolai Kaplin wrote:
Hi Nikolai,
The session ends but still the page is active. Need to redirect it to login page when the session ends.
Regards,
Neha
Neha Agrawal wrote:
After timeout the first request will send you to the login page, does not it?
Hello,
please, Could you tell me where the session ends are, so you can redirect it?
"The session ends but still the page is active. Need to redirect it to login page when the session ends."
For PaaS infrastructures use Factory Configuration to configure the session timeout.
Daniel
Hello Neha,
I got your concern. Session Expire itself means that your web page has lost its connectivity to internet and it is no more active page(user data also expired) so it cannot re-direct to login page itself. Once a request is made to site again, it will automatically redirect request to login page.
For your requirement, You have to develop your own logic that will check if there is inactivity till expiry limit and just before session expire, you have to re-direct to login page and kill session immediately.
Thanks,
Sanjay