Re: Form Authentication



Hi,

you usually use RedirectFromLoginPage or SetAuthCookie to set the cookie. The FormsAuth infrastructure will transparently decrypt the cookie and populate Context.User on subsequent requests for you. No SessionState needed at all.

look at

Context.User.Identity.Name and .IsAuthenticated

after authentication

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Do I need a session variable to say the user is log on or
SetAuthCookie and GetAuthCookie is enough to do so. Thanks

"Dominick Baier [DevelopMentor]" wrote:

Hi,

start here:
http://samples.gotdotnet.com/quickstart/aspplus/doc/formsauth.aspx
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi,
I'm creating a class, that will go to a database and authenticate
if the
user
exist and the password is correct. What I don't understand, is how I
tell my application that the user is authenticated (during a time
period), so It doesn't keep asking for the login. Francisco


.



Relevant Pages

  • Re: Use owa cookie for authentication
    ... The plugin is a c# asp .net application that needs to authenticate the user ... Don't I have to decode the cadata cookie to get the ... >> There is no problem when I use NTLM in owa, but when I switch to Forms ...
    (microsoft.public.exchange.development)
  • Cookie Encryption and custom auth
    ... SSI. ... I was looking at the idea of one cookie shared across the ... the code would try and authenticate them and add the site to the list. ... roles cookie would then be created with a list of the users roles for that ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Linux/Windows Authentication?
    ... implementations I've seen used username/passwd to generate a cookie in ... the client's browser. ... > we would be looking for a transparent way to authenticate = them and to ...
    (Pen-Test)
  • Re: XML Webservice authentication
    ... you have to make sure that the data island xml call sends the formsauth cookie - i am not sure if this happens by default/how it works. ... Dominick Baier - DevelopMentor ... new to Web Services so may be there is a better techonology I can ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Single Sign on with Oracle
    ... users and then add a cookie with whatever information you need from the LDAP ... Authenticate against the Active Directoryby Using Forms ... Sam Santiago ...
    (microsoft.public.dotnet.distributed_apps)