Re: [PHP] Sessions and Header() - Retraction

2002-07-16 Thread Greg Macek
Well, perhaps stepping away from the problem for a few minutes actually helps clear the mind. Found that one of my mysql_query() statements wasn't completing and everything after that didn't finish. Once I fixed that, all the session variables work. Go fig. Let that be a lesson to me :-) Gre

[PHP] Sessions and Header()

2002-07-16 Thread Greg Macek
Forgive the long post here, but I'll give as much info up-front and see if anyone can help me out here... I've searched the PHP docs for some help, but I am still running into a strange problem. Let me explain: I'm working on an internal site that stores information into a database, but it can

Re: [PHP] Sessions and header-redirect

2001-04-20 Thread Plutarck
Nope, you can use header() after starting a session. This works fine, even if a session is already started: session_start(); header("Location: http://www.fbi.gov"); Creapy, but it works. You see, when a "header" is sent, it's not actually "sent". PHP collects all headers and fills out a head

[PHP] Sessions and header-redirect

2001-04-20 Thread Scott
Does anyone know of a way to use sessions and still be able to redirect with the header function. In the code below I test for the existence of the PHPSESSID and send the user to register if it doesn't exist. If it does exist I start a session to retrieve the session variables then call a class th