Jump to content

To verify is a session var have a certain value


jomla

Recommended Posts

Hi at all,

I have a session variable called securty_level
what is the best script to verify if exist and if is set to a certain value?
I wrote:

<?php
session_start();
if (!isset($_SESSION['securty_level']) || $_SESSION['securty_level']<5)
{
header('Location: http:/www.goaway.com/');
exit;
}
?>
My script sufficiently protects?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...