session and header("location....")

From: Date: Wed, 12 Mar 2003 14:08:33 +0000
Subject: session and header("location....")
Groups: php.db 
Request: Send a blank email to php-db+get-26279@lists.php.net to get a copy of this message
Hi everyone, Thanks for looking at my question! Well, i just made a script that firstly check's up username and password (log-in script) then next if the user enteret the correct information a session is set like this: session_id($sessid); session_start(); $_SESSION['ngskdsngjkla465gfdh'] = "LOGETIN-TRUE"; But then when this session is set it changes from the log in page to the real password-protected page. I tried with a normal header location, but it did'nt work, so i tried to look at php.net about sessions, it says that you're had to transfer the sessionid to the next page. Now i'm trying that, but it just wount work... The header location im using looks like this: header("Location: http://www.domain.tld/admin/index.php?PHPSESSID=".sessid); And i also tried with: header("Location: http://www.domain.tld/admin/index.php?PHPSESSID=".$sessid); But none of them will work....i hope you will look at it, and tell me if you have a solution. Thanks folks. Regards. Lars Rasmussen

« previous php.db (#26279) next »