Re: Passing parameters to login page with authentication forms
- From: HARI PRASD BARU <HARIPRASDBARU@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 13:22:02 -0700
Yap Basically u need to write a class which derives from system.web.ui.page.
WRite ur code in one of the method...and check here if user is authenticated
or not...or write ur own logic to redirect user/customize URL....
Inherit all ur webforms from this class.But only disadvantage with this
method is that u'll not get the design view of the page as it is derived from
custom class...
"jasonkester" wrote:
> Rolling you own security is not very hard. If FormsAuthentication
> doesn't do everything you want, just rewrite the parts you need and
> keep the rest.
>
> In this case, I'd derive a class off of System.Web.UI.Page, and derive
> your pages from that. Have YourPage sniff user context out of the
> FormsAuthentication model, figure out if the user belongs where he's
> trying to go, then manually kick him to the login page along with any
> custom parameters you want. If you set ?url=whereYouCameFrom.aspx, you
> won't even have to modify your login code.
>
> Good luck!
>
> Jason Kester
> Expat Software Consulting Services
> http://www.expatsoftware.com/
>
>
.
- Follow-Ups:
- Re: Passing parameters to login page with authentication forms
- From: Trollpower
- Re: Passing parameters to login page with authentication forms
- References:
- Passing parameters to login page with authentication forms
- From: Trollpower
- Re: Passing parameters to login page with authentication forms
- From: jasonkester
- Passing parameters to login page with authentication forms
- Prev by Date: Re: Content Expiration Question
- Next by Date: Sorting an ArrayList.
- Previous by thread: Re: Passing parameters to login page with authentication forms
- Next by thread: Re: Passing parameters to login page with authentication forms
- Index(es):