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" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to