note 86041 added to function.session-id

From: Date: Tue, 30 Sep 2008 19:01:28 +0000
Subject: note 86041 added to function.session-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-144911@lists.php.net to get a copy of this message
I was having trouble with the whole session staying intact when opening a new window with window.open(). I tried just about everything and nothing work. So I did a simple test case and found the corlput. <?php $mytimeout = 720 * 60; // minutes * 60 session_set_cookie_params($mytimeout); $sessdir = "my\path\to\sessions"; ini_set('session.save_path', $sessdir); session_cache_expire($mytimeout / 60); set('session.gc_maxlifetime', $mytimeout); ?> You have to repeat this same bit of coding inside of your popup.php, duh!! ---- Server IP: 209.41.74.194 Probable Submitter: 132.170.4.26 ---- Manual Page -- http://www.php.net/manual/en/function.session-id.php Edit -- https://master.php.net/note/edit/86041 Del: integrated -- https://master.php.net/note/delete/86041/integrated Del: useless -- https://master.php.net/note/delete/86041/useless Del: bad code -- https://master.php.net/note/delete/86041/bad+code Del: spam -- https://master.php.net/note/delete/86041/spam Del: non-english -- https://master.php.net/note/delete/86041/non-english Del: in docs -- https://master.php.net/note/delete/86041/in+docs Del: other reasons-- https://master.php.net/note/delete/86041 Reject -- https://master.php.net/note/reject/86041 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144911) next »