Re: Re[4]: [PHP] PLEASE HELP! session variable fails to persist!!
| From: | Zlutarch G. | Date: | Sat, 15 Jun 2002 01:05:50 +0000 |
| Subject: | Re: Re[4]: [PHP] PLEASE HELP! session variable fails to persist!! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102293@lists.php.net to get a copy of this message | ||
Hi Stuart,
Thanks. I added error_reporting (E_ALL); and it gave me the following error msg: "Warning: Undefined index: var in c:\program files\apache group\apache\htdocs\php\superstock\ssi\valuecalc\valuescreen\testsess.php on line 6"
Here is line 6: echo "session var: ".$_SESSION["var"]."<br>";
Apparently, there is no session variable! Does that mean the session was not created? I thought the session is created if I get the same session ID each time I reload the page.
Zlutarch
P.S. I wish I could post the server address, but its on a private network. Only computers on the intra net have access to the server. I will see what I can do.
From: Stuart Dallas <stuart@sharedserver.net> Reply-To: Stuart Dallas <stuart@sharedserver.net> To: php-general@lists.php.net Subject: Re[4]: [PHP] PLEASE HELP! session variable fails to persist!! Date: Sat, 15 Jun 2002 01:49:40 +0100 On Saturday, June 15, 2002 at 1:42:45 AM, Zlutarch G. wrote: I tried your script, but I couldn't get it to work. I guess it has to be something wrong with my server configuration? I am using Apache 1.3.14. I am new to Apache, so I don't know what could possibly be the configuration problem. Do you have any ideas? Thanks a lot. Do you get any errors? Add the following line immediately before the call to session_start()... error_reporting (E_ALL); My guess is that it's failing to create the session, but if your error reporting is too low you may not be told about it. Is the server you are using public? Can you post the URL so we can take a look? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com