Bug #17144 Updated: No Session ID and losing Session Var's between pages

From: Date: Sat, 29 Jun 2002 15:09:36 +0000
Subject: Bug #17144 Updated: No Session ID and losing Session Var's between pages
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12523@lists.php.net to get a copy of this message
ID: 17144 Updated by: sniper@php.net Reported By: eric.jones@hua.army.mil -Status: Open +Status: Feedback Bug Type: Session related Operating System: FreeBSD 4.5 PHP Version: 4.2.0 New Comment: I tested this and it works for me. At least this simple script: <?php echo $_SESSION['test']++; ?> (gotta reload the page twice to get output, of course :) This worked with the latest CVS checkout. In phpinfo() output, is the session.auto_start On ? (in both fields) If not, then you might be changing the setting in wrong php.ini which is not even used..check this first. If that wasn't the problem, then try with this snapshot: http://snaps.php.net/php4-latest.tar.gz Previous Comments: ------------------------------------------------------------------------ [2002-06-28 22:19:36] sniper@php.net So it's session.auto_start which doesn't work. I'll test it myself soon. ------------------------------------------------------------------------ [2002-06-28 22:18:01] eric.jones@hua.army.mil yes. when i have session_start(); it works fine. but without session_start() i lose all variables when i transition pages. ------------------------------------------------------------------------ [2002-06-28 22:16:54] sniper@php.net Question is, does it work when you have session_start() or not? ------------------------------------------------------------------------ [2002-06-28 22:14:46] eric.jones@hua.army.mil It was my understanding from the online docs that if i have session auto start set to on (ie 1) that i would not need the session_start() function. but if this is not the case then i guess i do not have a bug :) ------------------------------------------------------------------------ [2002-06-27 22:45:33] sniper@php.net session_start() is _required_ even with the new $_SESSION variable..was this the problem? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17144 -- Edit this bug report at http://bugs.php.net/?id=17144&edit=1

« previous php.bugs (#12523) next »