Lance's Whiteboard

Random scribbling about C#, Javascript, Web Development, Architecture, and anything else that pops into my mind.

News


Creative Commons License
Lance's Whiteboard Blog by Lance Hunt is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Based on a work at weblogs.asp.net




Sponsored Ad
Sponsored Ad

Blogs I Read

ASP.NET Roles cookie expiration date easter egg?

Just stumbled upon this today while spelunking the code for ASP.NET Membership & Roles.  The DeleteCookie() method on the Roles provider API does a standard call to remove the cookie, but afterwards writes out a new, expired cookie just to make sure.

While perusing with Reflector, I noticed something odd thing about the expired cookie it writes out. The expiration date is set to 10/12/1999 rather than the expected DateTime.MinValue.   So, I'm just curious about the significance of that date.  A quick Live.com or Google search doesnt seem to reveal anything interesting.

Maybe the coder was in trouble with the wife about forgetting their anniversary, so he immortalized it in code - who knows.. :)

Posted: Oct 23 2006, 01:33 PM by CodeSniper | with 4 comment(s)
Filed under:

Comments

LaptopHeaven said:

It was the day of 6 billion. http://en.wikipedia.org/wiki/The_Day_of_Six_Billion
# October 23, 2006 3:59 PM

Jonathan Sampson said:

I've always made it a habit to plant at least one innocent egg in most all of my projects. I remember when I first started finding them in Windows95 many years back. I wonder what type of stuff we'll see in Vista.
# October 23, 2006 4:41 PM

Tilli said:

DateTime.MinValue would create an in-memory (Session) cookie. The developer set it to an explicit date in the past so it would really expire on the client machine, instead of being kept in memory until the browser is closed
# November 3, 2006 1:57 PM

easter date 2005 2006 said:

Pingback from  easter date 2005 2006

# April 13, 2008 8:28 PM