not sure about FormsAuthentication...

  • Thread starter Thread starter Daves
  • Start date Start date
D

Daves

I'm using an authentication (login) code of my own, completely bypassin
asp.net's membership functions... Isn't it enough to just set the
Session["UserName"] value on login and then erasing when user logs out? Is
there any need to use

FormsAuthentication.SetAuthCookie(...)

unless I want the login stored in cookie on client side?
 
I'm using an authentication (login) code of my own, completely bypassin
asp.net's membership functions... Isn't it enough to just set the
Session["UserName"] value on login and then erasing when user logs out? Is
there any need to use

FormsAuthentication.SetAuthCookie(...)

unless I want the login stored in cookie on client side?

Sure, you can do your method, but you're going to have to validate each and
every page yourself to ensure that the username value is set. Using
SetAuthCookie ASP.NET will take care of verifying that users have access to
your page automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top