Re: ASP.NET Forms Authentication - How to Know if User Has Previously Been Authenticated
From: Richard (richardhuff_at_gmail.com)
Date: 01/17/05
- Next message: louise raisbeck: "Re: Close a window then cause some server code to run if user hits"
- Previous message: masoud bayan: "doPostBack"
- Messages sorted by: [ date ] [ thread ]
Date: 17 Jan 2005 09:19:06 -0800
I'm having the same problem as stated in the start of the thread and
Request.IsAuthenticated does not work because no methods for
authentication have been called.
My index page allows access to anonymous users via the web.config file,
but I would also like to use user-specific information on that page if
they've been there before How do I access previous presistent cookies
or tickets on a anonymous page?
For example: first, the user logs on to my site and checks "Remember my
ID" (persistent cookie). Then, they close the browser, thus ending the
session. Finally, the user comes back to the index page that users
don't have to be logged in to see, but the this user does see "you are
logged in" because their FormsAuthentication ticket was set to
persistent when they first logged in. In this scenario,
Request.IsAuthenticated = false when they open the new session. If they
go to a protected page, they don't have to log in and now
Request.IsAuthenticated = true.
- Next message: louise raisbeck: "Re: Close a window then cause some server code to run if user hits"
- Previous message: masoud bayan: "doPostBack"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|