Re: ASP.NET Forms Authentication - How to Know if User Has Previously Been Authenticated

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Richard (richardhuff_at_gmail.com)
Date: 01/17/05


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.



Relevant Pages

  • Re: print problem with multiuser
    ... It's possible the printers weren't removed correctly and when the new user logs in with the same session id that the orignial user had, they also picked up the printers. ... Microsoft MVP - Terminal Server ...
    (microsoft.public.windows.terminal_services)
  • Re: Problem in service with User Fast-Switching
    ... That session ID is which triggered the session change event. ... A user logs off then logs on previously unopened account ... A user logs off then logs previously opened account ...
    (microsoft.public.win32.programmer.kernel)
  • Re: server question
    ... >> values when a user logs in. ... And after that uses http to show the pages. ... Since I am using session var's to keep track of things, ... store the session id in a secure cookie, then it wouldn't be sent when the ...
    (comp.lang.php)
  • Re: Slow Logon 2003 TS
    ... something when the user logs on or off. ... lock ups and total freezing of their session. ... I have no idea where to start troubleshooting such a situation. ...
    (microsoft.public.windows.terminal_services)
  • Re: Keep user logged in with cookie
    ... Lengthen the session length? ... The standard approach is to use a persistent cookie, ... setting it to expire in a year's time, then use the token in the ...
    (comp.lang.php)