Page 1 of 1

Anonymous user times out

Posted: Sun Apr 02, 2023 11:10 pm
by crash

I have a page generated by ASPM set to anonymous in the security settings, no need to login, this info is public.
This page times out and then goes to the login page.

How do I prevent this from happening?
Thanks


Re: Anonymous user times out

Posted: Mon Apr 03, 2023 7:54 am
by MichaelG

You can clear the timeout time if the user is not logged in the Page_Loading server event. For example:

if (!IsLoggedIn())
Config.SessionTimeout = 0;