note 34953 added to function.session-set-cookie-params
| From: | treeml at itree dot org | Date: | Wed, 13 Aug 2003 08:13:37 +0000 |
| Subject: | note 34953 added to function.session-set-cookie-params | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54058@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.session-set-cookie-params.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34953
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34953&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34953&report=yes