I'm using this code to authenticate and login a user:
function validate($name, $password, $url)
{
session_start();
if (!isset($name))
{
user::lform($url);
exit();
}
else
{
session_register("name", "password");
$name = user::authenticate($name, $password);
if (!$name)
{
session_unregister("name");
session_unregister("password");
user::lform($url);
}
else
{
if ($c == "logout")
{
user::logout($url);
}
}
}
}
Now, the login works, and I get redirected to the page I want, but if I manually type in another URL into the address bar, I have to login again. What am I doing wrong? Thanks
Mike
http://www.stodge.net