What do browsers do with expired cookies?
Solution 1:
Taken from MSDN
If a cookie has expired, the browser does not send that particular cookie to the server with the page request; instead, the expired cookie is deleted.
Solution 2:
This depends upon the specific browser and also the user's personal settings. Welcome to the world of web development, where everybody is a special case. This is one of the reasons you need to test your site extensively, with multiple browsers, from different locations.
Solution 3:
Browser checks for expired cookies when a page is requested from that domain. If a cookie has expired, the browser does not send that particular cookie to the server with the page request, and deletes it.
If a page has not been requested from that domain, the cookie will reside on your browser till it is overwritten by another cookie (happens when memory allocated for storing cookies gets used up).