Re: Can I Manually set return Url that RedirectFromLoginPage uses?
From: Ryan LaNeve (ryan@nolanevespam.com)
Date: 11/30/02
- Next message: EarlT777: "Can I practice setting up and using SSL without purchasing a certificate?"
- Previous message: Cenon Del Rosario: "Re: Design for ASP.Net w/ ComponentServices"
- In reply to: EarlT777: "Can I Manually set return Url that RedirectFromLoginPage uses?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Ryan LaNeve" <ryan@nolanevespam.com> Date: Sat, 30 Nov 2002 17:40:39 -0500
"EarlT777" <earlt777@hotmail.com> wrote in message
news:eUfdJEKmCHA.2224@tkmsftngp02...
> Instead of setting forms authentication to automatically redirect users to
> my login page, I am handling that myself. that way, I can control which
> pages I want to validate. Also, because all my pages are actually
> UserControls, the normal automatic authentication does not work anyway.
>
> I can manually create a cookie with the return url and use that to
redirect
> the user after login, but it would be sweet if I could set the same
property
> that Forms authentication is setting and then be able to register and
> redirect the user with RedirectFromLoginPage. Is this possible?
>
> Thanks for your help!
>
> Earl
>
This is covered in the docs.
[from Remarks section of FormsAuthentication.RedirectFromLoginPage Method]
"Redirects, based on the contents of the URL key in the query string, or
redirects to Default.aspx if the return key does not exist."
Add a "?URL=X" value to the URL when you redirect to your login page.
Calling RedirectFromLoginPage( ) will then redirect to the X value.
Good luck,
Ryan LaNeve
- Next message: EarlT777: "Can I practice setting up and using SSL without purchasing a certificate?"
- Previous message: Cenon Del Rosario: "Re: Design for ASP.Net w/ ComponentServices"
- In reply to: EarlT777: "Can I Manually set return Url that RedirectFromLoginPage uses?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|