Won't save session ids?

From: Date: Thu, 25 Apr 2002 12:13:34 +0000
Subject: Won't save session ids?
Groups: php.general 
Request: Send a blank email to php-general+get-94543@lists.php.net to get a copy of this message
Hi people, I have a problem with my PHP scripts. I hope someone can help me? I run PHP 4.0.6, Redhat 7.1 When i tries to set a session and then redirect to the next page, the sessions is empty? Someone know how to solve this problem? The script looks like this: session_start(); session_register("accountsession"); session_register("accountemail"); $HTTP_SESSION_VARS["accountsession"] = $session; $HTTP_SESSION_VARS["accountemail"] = $email; header("Location: ./main.php"); //The session and email variabel is from a output from a mysql query!! And this works fine! The mainpage tries to get the sessions. session_start(); echo "Email:".$HTTP_SESSION_VARS["accountemail"]."<br>".$HTTP_SESSION_VARS["accountsession"]; But i just get a "Email:" without any content? Please help me? Someone know whats wrong? Best Regards, Johan Holst Nielsen

« previous php.general (#94543) next »