Re: session variable problem
| From: | Tobias Talltorp | Date: | Mon, 16 Apr 2001 17:16:50 +0000 |
| Subject: | Re: session variable problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48777@lists.php.net to get a copy of this message | ||
The reason for the fatal error is that you can only store the sessions in
three (or four) ways, files, in a database or in the memory.
What variable has no value?
Have you started the session before you try to access the values?
session_start();
echo $your_value;
(Or preferably)
echo $HTTP_SESSION_VARS["your_value"];
Here is a little code for you to test if you can read the session variables:
session_start();
while(list($key, $val) = each($HTTP_SESSION_VARS))
echo "Variables name: $key - The value: $val";
}
"SERKAN BALKANLI (EBÝ Bþk.-Analist Prog.)" <SBALKANLI@THY.COM> wrote in
message news:1EAD224BDEE1D2118A510008C7B98BA502A743B3@dnsms.thy.com...
> i am starting and registering session variable succesfully that i can see
> the file on the server , but when it comes to use or display i can not ,
> the variable has no value ... the "session.save_handler = files" is
in
> php.ini , i tried to change it to user but that occured a fatal error
etc..
> So shortly what is the thing that i am missing
> thanks alot
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>