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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php