RE: [PHP-DB] Keeping authentication

From: Date: Tue, 01 May 2001 01:46:18 +0000
Subject: RE: [PHP-DB] Keeping authentication
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9004@lists.php.net to get a copy of this message
you need to use sessions and register the user's session name, and save it to the db against their account, then you can check that the session still exists and that will say they are logged in still. have a look at the session management functions in the manual (only in php4+) HTH Beau // -----Original Message----- // From: James McLaughlin [mailto:katana@montrose.net] // Sent: Tuesday, 1 May 2001 7:11 AM // To: php-db@lists.php.net // Subject: [PHP-DB] Keeping authentication // // // Hello, // // I am attempting to build a series of pages that are only visible // to people // logged in through the auth script I wrote using a MySQL db to // hold the auth // users. // // login.php--Login script that takes username and password from user. // myhome.php--If username and password check out myhome.php displays // information that is authed by thier account. // other.php-- *concept* if username and password still check out then this // page will display blah blah and blah3. // // I can login just fine and myhome.php displays correctly. But // when I go to // look at other.php it kicks me back to the login.php screen asking for my // username and password again. // // In the other.php page what and how do I ask the database if // someone is still // logged in or not logged in so that the authorized information will show? // // // // Any help would be appreciated // // Thanks // // Kat // // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net // For additional commands, e-mail: php-db-help@lists.php.net // To contact the list administrators, e-mail: php-list-admin@lists.php.net //

« previous php.db (#9004) next »