Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

Is this a bad example for displaying timeout?

I'm looking for an example to display to the user that their session is being expired. Click ok to stay on the page. It should display a counter as well.

I found this
http://blog.oscarscode.com/dot-net/display-session-timeout-warning-with-asp-net-ajax/

but one of the comments says it's a bad example because the timeout session is read from an appsetting. I thought that at first too when I saw this example.

Any other examples I can use?
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Nothing wrong with the example, there is no Ajax and the appsetting is only accessed at page load.
So it will work fine.

Though are better ways of maintaining session rather than reloading the page.
Avatar of Camillia

ASKER

any other examples?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, Gary