I have a login page setup and I want to store the value of user_level in the session so that on certain pages I can do a if user_level == X echo these options
this page below is my login_check.php. This works with my login page to login. I have the value to store the user_level in the session but it’s not working
[php]
[/php]
Here is my login page.
[php]
LoginLogin Page
Username | : | |
Password | : | |
Register |
Example of my top.php
[php]
Currently logged in as <?php echo $_SESSION['username']; ?>
Logout
Userlevel <?php echo $_SESSION['user_level']; ?>
[/php]
The username shows but the user_level doesn’t
Thoughts?