Application_SessionTimeOut VALUE

Closed
0
0

I followed a few questions in this forum to confirm the code to affect
Application_SessionTimeOut needs to be placed in the Program.cs file  & I finally got the method to be hit.
but the sessionTimeout can be set in the Default.json or programmatically .
I have tried both to no avail.
It seems from initial tests, setting the value for
sessionTimeout at either place programmatically in the Program.cs
with the newly wired up event Application_SessionTimeOut or in the Default.json
setting each to only 25 seconds ( or 2 seconds) results in an approx 140 – 145
second breakpoint hit of the Application_SessionTimeOut event.
Am I even affecting the sessionTimeout because I am not seeing it ?

On a related note how do we affect the countdown time amount in the default

countdown dialog ?

 

  • You must to post comments
0
0

You cannot set the session timeout to 2 seconds. It’s explained in the default.json file itself. The minimum is 60 seconds, and the timeout will fire at 120 (timeout * 2) in order to be able to keep the session.

This is different from ASP.NET where the session timeout fires AFTER the session has already expired and disposed.

 

There is a full explanation on session management in the docs.

  • You must to post comments
Showing 1 result