117
Views
6
Comments
Automatic session expire
Question

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? 

Rank: #1237

Hi,

OutSystems do it automatically. Please, look through the article.

Session Timeout

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.

mvp_badge
MVP
Rank: #18

Hi,

For PaaS infrastructures use Factory Configuration to configure the session timeout.

Regards,

Daniel

Neha Agrawal wrote:

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? 

 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