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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Membership provider

Status
Not open for further replies.

Denster

Programmer
Apr 9, 2001
198
GB
I have created a custom membership provider to authenticate users on login. This all works fine, the problem now is that the login details are stored in two different tables depending on the type of user who is logging in ie Public access and Business access. Is there a way to pass in a parameter on ValidateUser or on initialize. I am using 2 different login controls for each type of user so I can pass in the parameter at this point - just dont know how!. The only way I can think of getting round the problem is to create two custom providers to access the two different tables which seems to be a bit excessive.
 
What about setting a cookie depending on what user enters the site. Then read the cookie from within the custom membership provider. Thing is you cant use request.cookie from here - so is there another way to read the cookie. Or am I barking up completely the wrong tree.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top