note 100094 deleted from function.setcookie by crell
| From: | crell@php.net | Date: | Tue, 12 Apr 2022 00:37:27 +0000 |
| Subject: | note 100094 deleted from function.setcookie by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218155@lists.php.net to get a copy of this message | ||
Note Submitter: RC
----
For those of your banging your head as to why a cookie is not present when Internet Explorer 6
prints, the explanation is quite interesting. After a bit of investigation, a cookie with an
expiration time other than 0 fails to be passed from IE6 to the server when printing. A cookie with
an expiration time of 0 is sent.
Therefore:
setcookie("TestCookie", $value, time()+3600); //will not be sent from Print / Print
Preview in IE6
setcookie("TestCookie", $value, 0); //will be sent from Print / Print Preview in IE6
I'll let everyone figure out who's bright idea it was to not send normal expiring cookies
when printing in IE6...