ASP 200 Error Setting Cookie Expiration Past January 19, 2038

ID: Q247348


The information in this article applies to:
  • Microsoft Internet Information Server versions 3.0, 4.0
  • Microsoft Internet Information Services version 5.0


SYMPTOMS

When you use Active Server Pages (ASP) and attempt to set a cookie exportation date past January 19, 2038, one of the following ASP 200 error messages occurs (depending on the version of IIS you are running):

IIS 4.0
Cookies object error 'ASP 0200 : 0x80004005'
Out of Range 'Expires' attribute
/path/file.asp, line nn
The date given for 'Expires' precedes Jan 1, 1980 or exceeds Jan 19, 2038, 3:14:07 GMT.
IIS 5.0
Error Type:
Cookies object, ASP 0200 (0x80004005)
Out of Range 'Expires' attribute
The date and time given for 'Expires' precedes Jan 1, 1980 or exceeds Jan 19, 2038, 3:14:07 GMT.
/path/file.asp, line nn


CAUSE

This is caused by an overflow of the time_t variable in the C/C++ programming language. This variable is a 32-bit integer value used as an offset in seconds from January 1, 1970. This variable has a maximum value of 2147483647, which only allows dates through 3:14:07 GMT on January 19, 2038.


MORE INFORMATION

A detailed white paper on this topic is available on the following Web site:

http://www.microsoft.com/technet/year2k/white/ctime.htm
For more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site:
http://www.microsoft.com/year2000/

Additional query words: y2k

Keywords : kbWinOS2000
Version : winnt:3.0,4.0,5.0
Platform : winnt
Issue type : kbprb


Last Reviewed: February 2, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.