Hi Stuart,

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.


>From: Stuart Dallas <[EMAIL PROTECTED]>
>Reply-To: Stuart Dallas <[EMAIL PROTECTED]>
>To: "Zlutarch G." <[EMAIL PROTECTED]>
>Subject: Re[2]: [PHP] PLEASE HELP! session variable fails to persist!!
>Date: Sat, 15 Jun 2002 01:32:51 +0100
>On Saturday, June 15, 2002 at 1:24:43 AM, you wrote:
> > I tried including a link, but it didn't work. When I used 
> > I got nothing! Some how it was not registered as a session variable. Any
> > idea why that could be?
>I hope this will help clear up any confusion.
>Go here: http://www.devserver.org/test/session.php and click on the link.
>This is the code...
>     session_start();
>     $sID=session_id();
>     echo "session id: $sID<br>";
>     echo "session var: ".$_SESSION["var"]."<br>";
>     fnB();
>     function fnA(){
>             $_SESSION["var"]=1;
>     }
>     function fnB(){
>             if(isset($_SESSION["var"])){
>                     echo "session var is set...<br>";
>             }
>             else{
>                     echo "session var is not set...<br>";
>                     fnA();
>                     echo $_SESSION["var"];
>             }
>     }
>     print '<br><br><a href="'.$_SERVER['SCRIPT_NAME'].'">reload page</a>';
>It works. If this code doesn't work for you then it's something wrong with 
>server configuration.

MSN Photos is the easiest way to share and print your photos: 

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to