This is not really PHP specific, but I'll be danged if I can find anything that addresses it...
If you set a cookie in one window (including server side), it is available to the other windows of that browser, with ONE BIG EXCEPTION: Setting a temporary (by virtue of omitting the 'expires=...' setting) cookie in IE (at least on 5.5) will not be reflected in independently started threads of IE. In particular, putting an expiration date on a cookie will make it available to windows of independent threads of IE.
Actually, the above is not quite true: if a cookie with an expiration has been set (thus affecting all windows), and a temporary
cookie (of the same name) is then set, this will wipe out that cookie in all independently started threads in IE and set the cookie as temporary in the related threads. Evidently, there are two layers of cookie cache.
So here is MY PROBLEM: When someone logs into my web site, I would like to set a cookie that lets all the other browser windows on hir machine be aware of this. Unfortunately, per the above, the way to do this is to set an expiration, which means that I'd be leaving an authorization cookie on the browser - not good.
Can anyone help me be a good citizen and convert that cookie with expiration to a cookie that has value and is temporary across all the windows. Or suggest an alternate approach...
Thanks,
Csaba Gabor