ASP.NET - What happens when a HttpCookie expiration has been crossed

Posted by user70192 on Stack Overflow See other posts from Stack Overflow or by user70192
Published on 2010-03-26T12:43:19Z Indexed on 2010/03/26 12:53 UTC
Read the original article Hit count: 261

Filed under:

Hello,

I am creating some cookies in my ASP.NET application. These cookies expire 10 minutes after they have been created. I follow the approach described on MSDN as shown here: http://msdn.microsoft.com/en-us/library/system.web.httpcookie.expires.aspx

My question is, when a cookie "expires", what happens? Does the browser automatically delete the cookie? Is it our responsibility as developers to remove the cookies if they exist and have expired?

Thank you,

© Stack Overflow or respective owner

Related posts about ASP.NET