On Saturday 13 April 2002 12:01 am, you wrote:
Hi,
If I have register_globals=off, how do I pass session variables? I tried
session_register(var1). session_is_registered(var1) appears successful,
but if I tried to echo the $var1. Nothing shows. How do I pass session
variables?
Thanks,
On Saturday 13 April 2002 1:19 am, you wrote:
Sorry it still does not work. Can it be because I have HEADER(Location:
...) redirection after the session_registered('var1')?
Regards,
Norman
Okay,
This worked on my machine, PHP v4.1.2.
?php
session_start();
$barney = A big purple dinosaur;
Sorry...I must get some sleep.
?php
session_start();
$barney = A big purple dinosaur;
session_register(barney);
session_write_close();
// Redirect after session data has been written.
header('Location: /');
exit;
?
?php
// Another page...
session_start(); // Not sure if you need this
On Saturday 13 April 2002 2:13 am, you wrote:
I have an interactive website, with forums programmed by me. They have
smilies, and I'm trying to make a way for users to be able to type smilies
without them changing to images if they want. I'm trying to make it so if
they type NOSMILE:) it
4 matches
Mail list logo