J
Janette
Hi All,
I am developing using ASP.NET using VB on .NET framework 1.1.
I have an application that uses forms based authentication. When the session
times out and sends the user back to the login page, I see that it populates
a return_url value and adds it to the url. Such that when the user then
authenticates, the FormsAuthentication.RedirectFromLoginPage then uses the
return_url to return the user back to the page they were on when the session
expired. All well and good, but, some of my pages rely on the previous
content of the session variables to be able to populate the page they were
previously on.
Is there any way of preventing the redirect to the return_url, eg by using
something instead of FormsAuthentication.RedirectFromLoginPage, that only
ever takes the user to the mainmenu page? Or, do I need to add checking for
the existence of the required session values on each page (rather painful if
I do have to).
Please be gentle, I am not very experienced with ASP.NET as you may see by
my question.
Thanks in advance
Janette
I am developing using ASP.NET using VB on .NET framework 1.1.
I have an application that uses forms based authentication. When the session
times out and sends the user back to the login page, I see that it populates
a return_url value and adds it to the url. Such that when the user then
authenticates, the FormsAuthentication.RedirectFromLoginPage then uses the
return_url to return the user back to the page they were on when the session
expired. All well and good, but, some of my pages rely on the previous
content of the session variables to be able to populate the page they were
previously on.
Is there any way of preventing the redirect to the return_url, eg by using
something instead of FormsAuthentication.RedirectFromLoginPage, that only
ever takes the user to the mainmenu page? Or, do I need to add checking for
the existence of the required session values on each page (rather painful if
I do have to).
Please be gentle, I am not very experienced with ASP.NET as you may see by
my question.
Thanks in advance
Janette