Posted by jukka on 02/02/06 13:35
Stefan Mueller wrote:
> 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
if (!$_SESSION['my_session_variableberechtigung']) //not set
{
include('login.php');
}
else
{
whatever
}
or, correct me if I'm wrong, you could do exit; after the include
instead of the else statement.
Navigation:
[Reply to this message]
|