Posted by leo on 07/25/07 08:07
>you use the right way of setting session variables ($_SESSION["type"]
>= ...). Also, you seem to have misspelled the "type" in
ops, it was a leftover from various test i've made before
and yes there is a session_start
Also i forgot to mention that on a server with php5 it was working
while it was not working on a server with php4
I've solved the problem, even if I don't understand exactly why it
works. I've put exit after the header. Reading the documentation I've
discovered tha after the redirection it is necessary to call exit
otherwhise the execution of the script is not stopped.
What I don't understand is why the variable was deleted since it
wasn't referenced in the rest of the script.
Navigation:
[Reply to this message]
|