note 99794 added to function.session-regenerate-id

From: Date: Tue, 07 Sep 2010 07:52:04 +0000
Subject: note 99794 added to function.session-regenerate-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-172355@lists.php.net to get a copy of this message
In my code this function resulted in some Internet Explorer 8 browsers loosing their connection with the session. As mentioned above this is probably because the page reloads before the cookie is updated on the client side: This is the only manual workaround that never produced this problem for me: <?php $old_session = $_SESSION; session_write_close(); session_id(sha1(mt_rand())); session_start(); $_SESSION = $old_session; ?> Here is an article about it: http://anvilstudios.co.za/blog/php/session-cookies-faulty-in-ie8/ ---- Server IP: 69.147.83.197 Probable Submitter: 196.210.247.54 ---- Manual Page -- http://www.php.net/manual/en/function.session-regenerate-id.php Edit -- https://master.php.net/note/edit/99794 Del: integrated -- https://master.php.net/note/delete/99794/integrated Del: useless -- https://master.php.net/note/delete/99794/useless Del: bad code -- https://master.php.net/note/delete/99794/bad+code Del: spam -- https://master.php.net/note/delete/99794/spam Del: non-english -- https://master.php.net/note/delete/99794/non-english Del: in docs -- https://master.php.net/note/delete/99794/in+docs Del: other reasons-- https://master.php.net/note/delete/99794 Reject -- https://master.php.net/note/reject/99794 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172355) next »