jomla Posted October 30, 2016 Share Posted October 30, 2016 Hi at all, I have a session variable called securty_levelwhat 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 More sharing options...
Ingolme Posted October 30, 2016 Share Posted October 30, 2016 That works. The biggest security vulnerabilities would be in the code that actually gives security_level a value. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now