Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms Authentication Question

Status
Not open for further replies.

Smeat

Programmer
Mar 27, 2004
193
GB
Hi All

I have a site that I want to keep open to everyone but protect certain folders. Furthermore, I want to direct the user to different login pages dependant on which folder they are attempting to access.

Example:
If the user attempts to access a page in the Protected directory, they are redirected to the Proected/Login.aspx page.

If the user attempts to access a page in the Protected/SiteAdmin directory, they are redirected to the Proected/SiteAdmin/Login.aspx page.

My questions is how do I specify multiple login pages ?

TIA

Smeat
 
Hi Smeat,

The answer is you shouldn't!

Use just one login page and once logged in use the Roles Providor - this way you can secure any directory or page based on the role that logged in user is in.

Certainly no need to have multiple login pages.


+ loads on asp.net and Google

HTH

Cheers,
j



 
Hi J

There was a specific reason why I wanted two distinct login forms but I can't remember what that reason was, which makes me think it can't have been a valid reason :)

Anyway, I'm gonna go the single login form route, thanks for the reply.

Ta

Smeat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top