HTTPCookie expires

Last post 08-19-2003 8:46 AM by aka. 3 replies.

Sort Posts:

  • HTTPCookie expires

    08-14-2003, 11:50 AM
    • Participant
      825 point Participant
    • aka
    • Member since 06-18-2002, 8:50 AM
    • Posts 165
    Why is the httpcookie expires value when read back always shows the minvalue of 1/1/0001 12:00:00AM?

    thanks

    -aka
  • Re: HTTPCookie expires

    08-18-2003, 5:38 PM
    • Contributor
      6,996 point Contributor
    • russnem
    • Member since 10-03-2002, 11:26 PM
    • Los Angeles, CA
    • Posts 1,389
    • ASPInsiders
      TrustedFriends-MVPs
    What you might be seeing there is the result of NO expiration date OR a date that would force the cookie to expire immediately by default.
  • Re: HTTPCookie expires

    08-19-2003, 8:27 AM
    • Member
      500 point Member
    • ttawin
    • Member since 12-02-2002, 4:02 PM
    • Posts 107
    This is the default standard for cookies. If you did not set an expiration time for cookie, you will see this value. It just mean that the cookies will last for the entire session of the browser. When you close the browser, the cookies will be destroyed and will not be saved onto your harddisk.
    Free app + source code at www.tunguyen.us
  • Re: HTTPCookie expires

    08-19-2003, 8:44 AM
    • Participant
      825 point Participant
    • aka
    • Member since 06-18-2002, 8:50 AM
    • Posts 165
    This is what i found about the display:

    Browser when sending the cookie to the server along with every request does not send expires information along with it. so when you try to read the expires property it should be nothing. But since the expires property is of type DateTime, it is assigned a default value of MinValue which is 1/1/0001 12:00:00AM. In my observation this does not affect the actual expiration time set for the cookie.

    Thanks for all your reply.

    -aka
Page 1 of 1 (4 items)