Re: [PHP-DB] Keeping authentication

2001-04-30 Thread Miles Thompson
Here's the way I do it . I started using a cookie, but switched to session as I wanted the authentication to expire when the user closed the browser. The UserLogin function is in User_login.php. FetchUsrData checks the names and password against the database and returns either 1 (true) or 0 (f

RE: [PHP-DB] Keeping authentication

2001-04-30 Thread Beau Lebens
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 // -