note 93357 added to reserved.variables.cookies

From: Date: Sat, 05 Sep 2009 14:27:25 +0000
Subject: note 93357 added to reserved.variables.cookies
Groups: php.notes 
Request: Send a blank email to php-notes+get-160233@lists.php.net to get a copy of this message
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 ?> ---- Server IP: 202.79.181.100 Probable Submitter: 202.156.8.251 (proxied: 116.88.226.10) ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.cookies.php Edit -- https://master.php.net/note/edit/93357 Del: integrated -- https://master.php.net/note/delete/93357/integrated Del: useless -- https://master.php.net/note/delete/93357/useless Del: bad code -- https://master.php.net/note/delete/93357/bad+code Del: spam -- https://master.php.net/note/delete/93357/spam Del: non-english -- https://master.php.net/note/delete/93357/non-english Del: in docs -- https://master.php.net/note/delete/93357/in+docs Del: other reasons-- https://master.php.net/note/delete/93357 Reject -- https://master.php.net/note/reject/93357 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160233) next »