Certainly
if (!$_session["logged_in"]) {
header("login.php");
}
If you want a "Remember me" feature then you would have to use cookies, ensuring that you encode the username in the cookie (and don't call it user  ) so the casual "cracker" (not hacker) has a bit more work to do to decipher it.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|