RE: application variable

From: Date: Fri, 04 Jan 2002 09:28:40 +0000
Subject: RE: application variable
Groups: php.general 
Request: Send a blank email to php-general+get-79437@lists.php.net to get a copy of this message
I think what you mean is sessions, but that can't really do what you want. The best you can do is record on the database when the user last accessed a page of the site and infer if they are currently logged in or not. I would be interested to know how ASP does better than this in a response driven environment. You could force a user to formally log off, but what if they just close their browser, or their internet connection, or IE just stops working on their PC (the most likely). This is also a problem with inferring a current log in from the last hit by that user name. Tim www.chessish.com <http://www.chessish.com> ---------- From: Ye Tun [SMTP:ye@maia.cl.au.ac.th] Sent: 04 January 2002 02:21 To: php-general@lists.php.net Subject: application variable Do we have application variable in PHP as in ASP? I have a small database running with user name and password kept in MySQL database. Once user is login, how can I prevent the same user from logging in again? REgards, Ye

« previous php.general (#79437) next »