Posted by Geoff Berrow on 07/02/06 08:29
Message-ID: <44a702ec$0$9791$88260bb3@free.teranews.com> from Possum
contained the following:
>I would like to have a members database for log ons into members areas.. How
>do you create and impliment such a database..
Storing usernames and passwords
1. Write table to contain member details.
2. Write code to add details and ensure that username is unique
Logging in
3. Create form to capture username and password.
4. Check db. If there is one row that matches username and password set
session variable to true or record a timestamp in the table.
On each protected page
5.check for session variable or that timestamp is not older than a time
of your choosing.
6. If all ok, load page (reset timestamp if used) else redirect to login
page
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
Navigation:
[Reply to this message]
|