S
Simon Harvey
Hi,
This is a very typical requirement so I'm sure the answer is very
straightforward.
If a user tries to get to a secure directory, they can be a sent to a login
page automatically. Once the user has been authenticated, a call to,
FormsAuthentication.RedirectFromLoginPage()
will send the user to the page he had been originally trying to reach.
Good. Thats very handy and something I definately want to use. The problem
is, what do I do when the user navigates directly to the login page of
his/her own accord. In this case,
when the user is authenticated, I might want to just send them to a default
page.
My question is, how do I detect whether or not I should use
RedirectFromLoginPage() or another method that just redirects the user to a
page of my choosing.
I hope that makes sense! Thank you to anyone who can help me with this
Simon
This is a very typical requirement so I'm sure the answer is very
straightforward.
If a user tries to get to a secure directory, they can be a sent to a login
page automatically. Once the user has been authenticated, a call to,
FormsAuthentication.RedirectFromLoginPage()
will send the user to the page he had been originally trying to reach.
Good. Thats very handy and something I definately want to use. The problem
is, what do I do when the user navigates directly to the login page of
his/her own accord. In this case,
when the user is authenticated, I might want to just send them to a default
page.
My question is, how do I detect whether or not I should use
RedirectFromLoginPage() or another method that just redirects the user to a
page of my choosing.
I hope that makes sense! Thank you to anyone who can help me with this
Simon