Session Authentication
Posted: Wed Oct 23, 2002 3:32 am
Howdy,
I'm a bit oif a newbie when it comes to PHP (HTML and MySQL are more my thing) and i'm looking for some info based the tutorial by "enygma" that covered the use of session ID's.
Basically I need a basic username and password form on my front page that sets the values $user and $pass, and also sets $logged_in to "1".
Then all I want to do is be able to put a chuck of code on each page that I want to secure, that checks to see if the user if logged in correctly so the page can be displayed....if the user isn't, then a simple echo "Login!"; statement will suffice!
Can anyone help?
I'll resort to bribery if I have to!
Kickinhard007
browsing@rocketdave.co.uk
I'm a bit oif a newbie when it comes to PHP (HTML and MySQL are more my thing) and i'm looking for some info based the tutorial by "enygma" that covered the use of session ID's.
Basically I need a basic username and password form on my front page that sets the values $user and $pass, and also sets $logged_in to "1".
Then all I want to do is be able to put a chuck of code on each page that I want to secure, that checks to see if the user if logged in correctly so the page can be displayed....if the user isn't, then a simple echo "Login!"; statement will suffice!
Can anyone help?
I'll resort to bribery if I have to!
Kickinhard007
browsing@rocketdave.co.uk