PHP/MySQL Login
Posted: Fri Nov 17, 2006 12:32 pm
Should the following be used to see if a user is logged in:
1) to 1 if they were authenticated
2) Member Pages: check session variable
#logged-in, continue
Should the username/password be stored in session variables and re-checked against the database every time they issue a task or is this good enough?
TIA!
1)
Code: Select all
Login Page: set $_SESSION['login']2) Member Pages: check session variable
Code: Select all
session_start();
if($_SESSION['login']==1)Should the username/password be stored in session variables and re-checked against the database every time they issue a task or is this good enough?
TIA!