RE: [PHP] Login Script

From: Date: Mon, 19 Jul 2004 19:53:34 +0000
Subject: RE: [PHP] Login Script
Groups: php.general 
Request: Send a blank email to php-general+get-191063@lists.php.net to get a copy of this message
[snip] Well I already have a db with username/password fields, etc. I'm just looking for code for a login page and a file to include at the top of each page for auth. [/snip] a. do not reply off-list unless asked, your question may not receive the attention it needs 2. You do know basic PHP, correct? Create a page that accepts a username and password. Have the un and pw checked against the db. If it is good, set a cookie and check for the cookie with each page, if not redirect to the proper location.

« previous php.general (#191063) next »