forms authentication and cookies

Discussion in 'ASP .Net' started by Phil Townsend, Nov 3, 2004.

  1. I have an application which uses forms authentication. Once users log
    in, if they close their browser, then they should have to log in again.
    However, I cannot seem to make this happen unless I manually delete the
    cookie. I know that I can reset the Expiration on the cookie, but cannot
    figure out how to fire an event which causes this. Session_End does not
    seem to work for this. What is the best way to accomplish this? Thanks!



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Phil Townsend, Nov 3, 2004
    #1
    1. Advertising

  2. Phil Townsend

    Scott Allen Guest

    Hi Phil:

    Are you invoking FormsAuthentication.RedirectFromLoginPage? If so, are
    you specifying a value of false for the second parameter (persistent
    cookie)?

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/

    On Wed, 03 Nov 2004 05:20:03 -0800, Phil Townsend
    <> wrote:

    >I have an application which uses forms authentication. Once users log
    >in, if they close their browser, then they should have to log in again.
    >However, I cannot seem to make this happen unless I manually delete the
    >cookie. I know that I can reset the Expiration on the cookie, but cannot
    >figure out how to fire an event which causes this. Session_End does not
    >seem to work for this. What is the best way to accomplish this? Thanks!
    >
    >
    >
    >*** Sent via Developersdex http://www.developersdex.com ***
    >Don't just participate in USENET...get rewarded for it!
     
    Scott Allen, Nov 3, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    2
    Views:
    1,562
    Tommy
    Feb 13, 2004
  2. Jeff
    Replies:
    1
    Views:
    340
    Joe Fallon
    Apr 28, 2004
  3. _Who
    Replies:
    7
    Views:
    2,768
  4. Eric
    Replies:
    2
    Views:
    643
  5. fcs

    Forms Authentication and Cookies

    fcs, Feb 20, 2008, in forum: ASP .Net Security
    Replies:
    2
    Views:
    129
Loading...

Share This Page