KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Article: Q247348
Product(s): Internet Information Server
Version(s): winnt:3.0,4.0,5.0
Operating System(s): 
Keyword(s): kbOSWin2000
Last Modified: 13-AUG-2001

-------------------------------------------------------------------------------
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


Additional query words: y2k

======================================================================
Keywords          : kbOSWin2000 
Technology        : kbiisSearch kbiis500 kbiis400 kbiis300
Version           : winnt:3.0,4.0,5.0
Issue type        : kbprb
Solution Type     : kbpending

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.