Shortsighted
There's almost nothing I love more than slogging through other people's code. Usually it's actually not that bad, but every once in awhile I'll find an utter gem, like this morning's nugget. You don't even need to be a programmer to understand this one.
loginCookie.Expires = New DateTime(2003, 12, 31, 23, 59, 59)
That basically says to set a "cookie":http://www.cookiecentral.com/faq/ on your browser that expires at 11:59 at night on Jan 1, 2003. The problem with this is that it's now beyond that, so every time this code fires, it places an already expired cookie on your browser, which does you no good.
This certainly isn't on the order of the "Y2K":http://www.y2k.gov/ bug (which was not as much laziness as it was lack of storage space to hold a 4-digit year), but it's still fairly annoying when you consider that swapping out the above line for
loginCookie.Expires = DateTime.Now.AddMonths(1)
not only makes the code easier to understand, but also won't ever break, since it just adds a month to whatever the current date is.