Tech Off Post

Single Post Permalink

View Thread: Cookie Question
  • User profile image

    The time in the cookie would be in GMT, so you also wouldn't have the issue with time zones or winter time, but if you really want to expire it (time on server and time on client can be slightly off) expire it with:

    cookie.Expires = DateTime.Now.AddYears(-1);