user managing with mysql+session (+cookies now :)

From: Date: Wed, 03 Jan 2001 23:28:34 +0000
Subject: user managing with mysql+session (+cookies now :)
Groups: php.general 
Request: Send a blank email to php-general+get-32562@lists.php.net to get a copy of this message
thank you for reply. but what to do if, the cookie feature turned off... or ok, if it works, then when the cookie should be expired, what if user go off from the site, and comes back later... (yes i know i'm not informed at all in the cookie problem) kojot > the best way i have found to check users, is to simply compare there submission with the > present database data... > ie. > select id from user where username = username and password('password') = password; > if(mysql_num_rows != 0) > setcookie(whatever you want in your cookie); > then on any page have a cookie check , like this.... > if(!(isset($cookie)) > header("location:login_page"); > > > hope thats readable... >

« previous php.general (#32562) next »