I use the $sess->register($var) to register a variable but when I want to use it I don't know how to do that.
I tried things like $sess->var or $sess->GLOBALS["var"] without sucess.
Someone can give me the magic sintax ;)
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-05-01
Hi Richard,
I appreciate your help, but I tried this without success.
I want to register a value in a session variable so that I can use it in other page, in other circunstance, wharever, but just call the variable through the name I've registered like you said doen't work here ;((
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Maybe this is a stupid question, ... so..
I use the $sess->register($var) to register a variable but when I want to use it I don't know how to do that.
I tried things like $sess->var or $sess->GLOBALS["var"] without sucess.
Someone can give me the magic sintax ;)
Thanks
$var
:)
Hi Richard,
I appreciate your help, but I tried this without success.
I want to register a value in a session variable so that I can use it in other page, in other circunstance, wharever, but just call the variable through the name I've registered like you said doen't work here ;((
You're registering incorrectly.
$sess->register("var");
$var = "Hello, World!";
The name of the variable is what is registered, you've been sending the value of the variable.
Dargh :) ehheeh
I love you !!
thks a lot
BTW, session registered variables don't work if you have "allow_cache" set to no. Ack!
And, I forgot to say, you are in SSL mode.
What, do you really have to be in SSL-mode to use session-variables?
No, he's saying that registered variables don't work IF you are in SSL AND have set 'allow_cache' to no.