I have a login script - here is the general idea of how it works.
User logs in
Their information is selected from the database - if it matches they get a session registered as such:
session_start();
session_register("session_name");
at the beginning of each page - I check for the following
session_start();
if(!session_is_registered("session_name"))
{
header("Location: must-login.htm");
}
The problem is that all of a sudden people are randomly being dropped. Do I need to register the session differently? It stores $session_name which is how I select from the databases. its been working fine, up until recently. So I'm just ruling out that its a programming problem.
Thanks.