|
Posted by Stefan Mueller on 02/02/06 11:46
>> If you try a open page in the same window you can use this code
>> header("Location: login.php");
>
> He wrote, "I'd like to open another page", so header option is a no go,
> only clientside script can do the trick.
Sorry you're right, my question was wrong. I don't like to open another page
in a new window I just like to open the page 'login.php' (within the same
window) if '$_SESSION['my_session_variableberechtigung']' is not set.
Therefore I think
header("Location: login.php");
will do what I need.
Actually I'm not sure if this statement is exactly what I was looking for
because according to the documentation
header("Location: http://www.example.com/");
redirects the browser.
What I need is a statement which tells PHP not to execute the code of the
actual PHP script if '$_SESSION['my_session_variableberechtigung']' is not
set but instead to open 'login.php' and execute that file.
Stefan
Navigation:
[Reply to this message]
|