I suggest using HTTP Module for authentication and authorization. If
you implement HTTP module by including a special line in webconfig,
all requests will go through one central place where you will be doing
the authentication and authorization. All of the pages in your app
will not have to worry about authorization or athentication, because
you can handle it all the way you want in one function. You can
inspect every incoming request and redirect people to login page and
save their original requested page and do it in any way you like,
using either cookies or session or a combination of two.
On Wed, 4 Feb 2004 15:59:38 -0600, "Curt_C [MVP]"
<software_AT_darkfalz.com> wrote:
Request.QueryString["ReturnUrl"]
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"feng" <an*******@discussions.microsoft.com> wrote in message
news:a5****************************@phx.gbl... My users who try to access a page before login are
redirected to my login page. Then after they successfully
login, my login page will redirect the user to the page
they intended to go through this line:
FormsAuthentication.RedirectFromLoginPage(strUserN ame,
False)
What I want now is that I want to capture the origional
url that the use intented to go BEFORE the user logs in. I
don't mind to do this in the login page, but this has to
be done in the page load, before the user's login info
typed in.
I know there is a function:
FormsAuthentication.GetRedirectUrl(strUserName, False)
but this won't work for me because it expect user name.
Any ideas?
Thanks a million!