Sessions and PHP
| From: | Patrik Fomin | Date: | Fri, 26 Mar 2004 22:38:57 +0000 |
| Subject: | Sessions and PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181592@lists.php.net to get a copy of this message | ||
Let me rephrase it,
i got a login page, once logged in you you got the session
$_SESSION['in'] = "true";
i want to be able to count the number of people that are logged in atm,
so when they logout with either logout button or close the window, i want to
then decrese the number.
In asp, you just used Session_Destroy() to determine if all sessions were
destroyed and then
APPLICATION['num'] = APPLICATION['num'] - 1
Is there anyway in php to do this?
regards
patrick
----- Original Message -----
From: "Patrik Fomin" <pafo@pafo.net>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Thursday, March 25, 2004 2:05 AM
Subject: Sessions and PHP
> Hi,,
>
> is there anyway to get the number of people connected to the site?
> in asp you just use Application and session_terminate to accomplish this
> is there anyway to do this in PHP ?
>
> regards
> patrick