Logged in users<

liunx

Guest
I am trying to build a website with a users logged in box like the one at the bottom of HTML Forums home page.

I guess i would have to use sessions to do this but am totally stumped on where to go next, could anyone shed a little light on the subject for me.

Bonkomfirst you'll need to use a form, then check what the person entered vs what's in a db or flat file.

have you searched google (<!-- m --><a class="postlink" href="http://www.google.ca/search?q=php+login+script&ie=UTF-8&oe=UTF-8&hl=en&btnG=Google+Search&meta=">http://www.google.ca/search?q=php+login ... arch&meta=</a><!-- m -->) for examples?these forums use cookies and sessions. when the user comes online and the forum detects they have a cookie then the forum puts a 1 in a column on the database to signify that that user is online. when the forum can't detect the user anymore it clears that column of that user. so the database has a cache table, so to speak.

so you need a database and at least 2 tables in it.

1 for the members and 1 for the session for the members
 
Back
Top