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

From: Date: Tue, 02 Jul 2002 16:19:22 +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-12820@lists.php.net to get a copy of this message
ID: 17144 Updated by: eric.jones@hua.army.mil Reported By: eric.jones@hua.army.mil -Status: Feedback +Status: Open Bug Type: Session related Operating System: FreeBSD 4.5 PHP Version: 4.2.0 New Comment: Ok i blew away my php.ini and tried it again. it still didn't work. Then i checked around with some people and it turns out that i was working on the wrong php.ini. php was looking for it in /usr/opt/php/lib/ and i had it in /usr/local/lib/ so once i moved it to the /php/lib/ folder all seems to work now. sorry to have wasted you time.... Previous Comments: ------------------------------------------------------------------------ [2002-06-29 11:09:35] sniper@php.net 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 ------------------------------------------------------------------------ [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 :) ------------------------------------------------------------------------ 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 (#12820) next »