I am trying to get this script (Free Light PHP Script - Free PHP Registration Login System) working, and I seem to be stuck in an endless loop.
Basically, you are meant to put this at the top of pages you want to protect:
if($_SESSION['isLoged'] != 'yes' || $_SESSION['userName'] == NULL)
This loads the log-in box. But even when you enter the correct password and get directed to the initial "secure" page, you are simply presented with the login box again.
Basically, despite "logging in", the session doesn't seem to actually start, and the login box will simply keep appearing. I am logging in, and the username and password is recognized, but the session doesn't seem to start. So, even after logging in, any page with the above code in it remains inaccessible.
I really know next to nothing about php, so really have no way of working this out.