note 93357 deleted from reserved.variables.cookies by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 12:17:34 +0000 |
| Subject: | note 93357 deleted from reserved.variables.cookies by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197148@lists.php.net to get a copy of this message | ||
Note Submitter: Sam Yong - hellclanner at live dot com
----
Take note that in IE when it's really weird that when you do something like this:
<?php
// import config/constants
session_set_cookie_params((time()+$_SITE['session_length']));
session_start();
$sess = session_name();
setcookie($sess, $_COOKIE[$sess], time() + $_SITE['session_length']);
// .. rest of the code
?>
It fails. the session cookie is not stored totally.
Instead, doing this would work:
<?php
// import config/constants
session_set_cookie_params((time()+$_SITE['session_length']));
session_start();
$sess = session_name();
setcookie($sess, session_id(), time() + $_SITE['session_length']);
// .. rest of the code
?>