note 34953 deleted from function.session-set-cookie-params by nlopess
| From: | nlopess@php.net | Date: | Sun, 21 Jan 2007 15:44:06 +0000 |
| Subject: | note 34953 deleted from function.session-set-cookie-params by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121989@lists.php.net to get a copy of this message | ||
Note Submitter: treeml at itree dot org
----
If the server time is not properly set, e.g(it is behind the client time). Excution of the
following code
session_set_cookie_params(2000);
session_start();
will NOT set/send cookie to Internet Explorer 6.0,
even though it will set the cookie on Mozilla/Firebird browser. But the cookie will get set without
the session_set_cookie_params();
Same holds true for following code,
$expiry = 60*30;
session_start();
setcookie(session_name(),session_id(), time()+$expiry, "/");
For some reason IE is really sensitive to cookie times. It won't even accept the cookie!!
This took me quite a while to figureout, for I thoguht it was an IE cookie security issue.