php-general | 2003022
Date: 02/18/03
- Next message: Rea_David <email protected>: "[PHP] How can you execute UNIX scripts from PHP"
- Previous message: Justin French: "Re: [PHP] is "http://username:password <email protected>/secure_area/" secure ?"
- In reply to: Frank Keessen: "Re: [PHP] $_SESSIONS and printing off.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 13:33 18.02.2003, Frank Keessen said:
--------------------[snip]--------------------
>This is working fine. But i've set $_SESSION['level'] to value 2 (that's
>done in the php file that calls this one). Now i want the above code to
>check for the level and if is not equal to two than go to the else (back to
>login.htm) statement..
--------------------[snip]--------------------
<?php
session_start();
if (isset($_SESSION['username']) && !empty($_SESSION['username'])
&& $_SESSION['level'] == 2){
echo 'Welcome '.$_SESSION['username'].', you are still logged in.';
echo $_SESSION['woonplaats'];
}
else{
header ( "Location: login.htm" );
}
?>
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Rea_David <email protected>: "[PHP] How can you execute UNIX scripts from PHP"
- Previous message: Justin French: "Re: [PHP] is "http://username:password <email protected>/secure_area/" secure ?"
- In reply to: Frank Keessen: "Re: [PHP] $_SESSIONS and printing off.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

