Hey,
What methods do you guys use for secure areas (Membership areas/Customer areas/ANythign that requires you to log-in)?
Pino
Printable View
Hey,
What methods do you guys use for secure areas (Membership areas/Customer areas/ANythign that requires you to log-in)?
Pino
Hey,
I personally use the built in Membership Provider. You can use this to protect areas of your website very easily.
For a sample of how to go about doing this have a look here:
http://www.vbforums.com/showthread.p...light=location
Specifically post #24 which includes a sample application.
Hope that helps!!
Gary
Thanks Gep,
What are the alternates to the Membership Provider? Are Session Variables still a feasbale option?
Hey,
Sure, using Sessions is certainly still an option. It would just mean that you have to take over the control of those elements.
Some people argue that the Membership Provider is bloated and overly complicated, but I personally have found it to be very useful. I have found that it is very easy to use and in terms of combining with the Login, LoginView, Menu and SiteMap Controls makes it a very simple enable secure areas within your website.
Gary
They're wrong.
@Pino: I generally use a custom membership provider and have my Master Page check for the required roles on a page. They are then either redirected or smacked with a spoon.
Membership providers should let you use cookies and/or sessions as you please.
Thanks, I will look into this.
Cheers.