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

From: Date: Tue, 02 Jul 2002 17:23:18 +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-12831@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: Bogus Bug Type: Session related Operating System: FreeBSD 4.5 PHP Version: 4.2.0 New Comment: User error, bogus. Previous Comments: ------------------------------------------------------------------------ [2002-07-02 12:19:21] eric.jones@hua.army.mil 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.... ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ 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 (#12831) next »