Where is the AuthenticationCookie stored?

Last post 06-03-2007 3:59 PM by hossein007. 4 replies.

Sort Posts:

  • Where is the AuthenticationCookie stored?

    03-11-2007, 8:44 PM
    • Loading...
    • wattte
    • Joined on 03-07-2007, 11:47 PM
    • Posts 3

    Hello,

    My web application is using FormsAuthentication but I can't find any cookie in the folder where my browser stores cookies from other websites.

    Where is the AuthenticationCookie stored?

    Is the AuthCookie only stored in the HttpRequest and HttpReponse?

    Please let me know of any links that explain this.

    I appreciate any assistance.

  • Re: Where is the AuthenticationCookie stored?

    03-11-2007, 9:02 PM
    Answer
    • Loading...
    • mbanavige
    • Joined on 11-06-2003, 8:29 AM
    • New England, USA
    • Posts 7,702
    • Moderator
      TrustedFriends-MVPs

    this type of cookie is generally referred to as an In-Memory Cookie.

    It does not get written to disk so it exists only in the browsers memory.  once the browser is closed, the cookie is gone.

     

     

    Mike Banavige
    ~~~~~~~~~~~~
    Dont forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Where is the AuthenticationCookie stored?

    06-02-2007, 11:13 AM
    • Loading...
    • hossein007
    • Joined on 02-22-2006, 11:02 AM
    • Posts 18

    So how can we make the authentication cookie be stored on disk so that it will returned back to server even after browser is reopened ??

  • Re: Where is the AuthenticationCookie stored?

    06-03-2007, 5:36 AM
    • Loading...
    • Kadjiokou
    • Joined on 07-12-2005, 8:59 AM
    • Posts 313

     

    Hi hossein007

    In asp.net 1.1,Form authentication tickets were always stored in cookies. Persistent cookies had a 50 year lifetime.  This means that you could close your browser down and open it  without having to login again to your site again.

    This has been changed with in Asp.net 2.0. You now need to set the lifetime of your cookie with the timeout  (the timeout attribute in the <forms /> configuration element) .

    HTH

    /Kadji

  • Re: Where is the AuthenticationCookie stored?

    06-03-2007, 3:59 PM
    • Loading...
    • hossein007
    • Joined on 02-22-2006, 11:02 AM
    • Posts 18

    The timeout property set in <forms> element determines the time span the cookie is valid while the browser is open and when you close the browser the cookie has gone and you must relogin. I have tested it and it is the case .

Page 1 of 1 (5 items)
Microsoft Communities
Page view counter