[thelist] IE discards cookies if no-cache?

Dougal Campbell dougal at gunters.org
Thu Jan 27 08:34:55 CST 2005

For some reason, IE is treating a persistent cookie as if it were 
instead a session cookie. I *think* it might be due to the web 
application that sets the cookie also sending no-cache headers in the 
response. I've been searching on Google and the Microsoft Knowledge 
Base, but haven't found a definitive answer yet. The closest clue I've 
found so far is this MSKB article:


The "AuthentiX" ISAPI filter has nothing to do with my app, and in fact 
my application runs under Apache/mod_perl/Mason, not IIS. But this 
article seems to point to a possible conflict between no-cache 
directives and cookies.

The other browsers we've tested (Firefox, Opera, etc) retain the cookie 
just fine. It's only IE that wants to toss it away when the browser 
closes. Can anyone verify that IE has a cookie caching bug when told not 
to cache pages, and give me a pointer to the best way to get a Mason 
component to get rid of those no-cache headers? We're using SSL 
connections anyhow, so the no-cache directives shouldn't be needed.

<tip type="Firefox">
The LiveHTTPHeaders extension is a great debugging tool for your backend 
  web applications: http://livehttpheaders.mozdev.org/

Dougal Campbell <dougal at gunters.org>

More information about the thelist mailing list