DelphiFAQ Home Search:

InterBase, MS-SQL, mysql, Oracle
C#, C++, Delphi, Java,
JavaScript, perl, php, Visual Basic, VBScript
Apache, Network, Shell
Web Publishing
JavaScript, perl CGI, VBScript, Web Hosting
Apache, File Types, Internet Explorer,
Network, Printing, Processes
Outside the Cube
Auto, Computer Hardware,
Finances, Dating Scams,
Household, Male Dating Scammers,
Other Scams, Travel

Featured Article

Can log into web site using FireFox, but not using Internet Explorer


I can log into our corporate web site if I use FireFox, but not if I use Internet Explorer. It's FireFox 1.5 and IE 6.0


Does your web site use a cookie to keep the session / you authenticated? I looked at your system and found that your server sends a cookie that expires within 10 minutes. Then I found that your server time was a full hour behind the client machine.

The cookie contains
the expiration time as a string in this format:

.. expires: 18:15 GMT..

In the specific case, the server time was 1 hour behind. The client computer had a current time of 19:05 GMT and the cookie had actually expired 50 minutes ago (instead of going to expire in +10 minutes)

Firefox ignores this and still accepts the cookie, even though it expired in the past. One could consider this to be a bug.

Internet Explorer is more strict and rejects this cookie (as it should!)

The solution is that the server should have the correct time. The client machine ideally should also have the correct time, at least within 5 minutes.

Since the cookie is set to expire in 10 minutes, it would be problematic if the client machine's clock is 10 ore more minutes "fast".
It will not be a problem if the client machine is "behind" on the time ("slow clock").

For the server, it is a problem if the server is "behind" ("slow server clock"). It is not a problem if the server clock is "fast" (ahead).

But best is, simply to have all involved machines use ntp to have correct time.

Generated 20:02:42 on Feb 21, 2017