#25393 [Opn->Bgs]: Session Variable is cleared with every connection
| From: | sniper@php.net | Date: | Sat, 06 Sep 2003 23:53:42 +0000 |
| Subject: | #25393 [Opn->Bgs]: Session Variable is cleared with every connection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47159@lists.php.net to get a copy of this message | ||
ID: 25393
Updated by: sniper@php.net
Reported By: zoop at lone dot ath dot cx
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Solaris 2.8
PHP Version: 4.3.3
New Comment:
Works fine for me. Most likely your php.ini is not loaded or wrong
php.ini is used.
Previous Comments:
------------------------------------------------------------------------
[2003-09-06 10:34:17] zoop at lone dot ath dot cx
I thought that this "session.auto_start = 1" option made it so you
didn't have to use session_start()
I am useing the same config file from version 4.3.2 and 4.3.3 and 4.3.3
doesn't keeps the session variable around.
------------------------------------------------------------------------
[2003-09-06 05:05:41] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
YOu probably forgot about session_start()
------------------------------------------------------------------------
[2003-09-06 02:45:21] zoop at lone dot ath dot cx
Description:
------------
The problem occured in php 4.3.3 apache 1.3.27 solaris 2.8
I seemed to have a problem with the $_SESSION Variable I could set
something in the array and the print it but I couldn't go to another
page. It would have an empty array.
I downgraded to 4.3.2 and it works without any probems
Reproduce code:
---------------
if (!$_SESSION['the']) {
print here;
}
$_SESSION['the'] = 1
<html> submit to load the page again
Expected result:
----------------
the first time you load the page it should print here and whatever html
there might be. after you reload the page or post to it it shouldn't
print here.
Actual result:
--------------
it prints here every time you load the page. if you print the value of
$_SESSION['the'] it is undefined.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25393&edit=1