Re: quick sanity check on user management / sessions

From: Date: Mon, 25 Nov 2002 03:01:58 +0000
Subject: Re: quick sanity check on user management / sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125865@lists.php.net to get a copy of this message
At 03:33 25.11.2002, Justin French said: --------------------[snip]-------------------- >I know the above should be fine, but I'm just checking if there's any reason >why I choose to call the DB on every page... it was about 2 years ago, so my >guess is "inexperience" :) --------------------[snip]-------------------- That's what all my apps do - they just check if the user is already logged in. When there's no "user record" in session space, the login box gets displayed, and as a response of user login the script checks the database. It then reads all necessary data, including last login, user rights, etc etc, from the DB, sometimes updates a user cookie, depending on the app. DB is checked only once. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#125865) next »