Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Paul M Foster
On Sun, Aug 04, 2013 at 05:58:53PM +0100, Ashley Sheridan wrote: [snip] > > I'm not saying the method is bad, but the way Facebook does it isn't > great, I'm constantly seeing people online who "sign out" when I open > up a message box. Now that might be genuine, but I'm not *that* > unpopular!

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
Matijn Woudt wrote: >On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan >wrote: > >> >> >> Farzan Dalaee wrote: >> > >> > >> >> On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: >> >>> >> >>> You mean when user logged in i add new record to table and when >> >logged out i delete the row? So

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
> > > > On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan > wrote: >> >> >> Farzan Dalaee wrote: >> > >> > >> >> On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: >> >>> >> >>> You mean when user logged in i add new record to table and when >> >logged out i delete the row? So if user

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Matijn Woudt
On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan wrote: > > > Farzan Dalaee wrote: > > > > > >> On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: > >>> > >>> You mean when user logged in i add new record to table and when > >logged out i delete the row? So if user close the browser without

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
Farzan Dalaee wrote: > > >> On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: >>> >>> You mean when user logged in i add new record to table and when >logged out i delete the row? So if user close the browser without >logout how can i find user is online or not? >>> >>> Sent from my iPho

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Stuart Dallas
On 4 Aug 2013, at 14:36, Farzan Dalaee wrote: > I need to inspect each visitor to show how online or who offline for chat > Like facebook chat PHP sessions is a really bad mechanism to use to accomplish this. In the past I've used memcached or redis for presence indicators. Both allow you to se

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
> On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: >> >> You mean when user logged in i add new record to table and when logged out i >> delete the row? So if user close the browser without logout how can i find >> user is online or not? >> >> Sent from my iPhone >> >> On Aug 4, 2013,

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: > You mean when user logged in i add new record to table and when logged out i > delete the row? So if user close the browser without logout how can i find > user is online or not? > > Sent from my iPhone > > On Aug 4, 2013, at 14:44, Mat

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
You mean when user logged in i add new record to table and when logged out i delete the row? So if user close the browser without logout how can i find user is online or not? Sent from my iPhone On Aug 4, 2013, at 14:44, Matijn Woudt wrote: > > > > On Sun, Aug 4, 2013 at 11:02 AM, Farzan D

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Matijn Woudt
On Sun, Aug 4, 2013 at 11:02 AM, Farzan Dalaee wrote: > hi > i want to write online user module for my site and i want to check > $_SESSION['userID'] to find all users id who loged in > but when i echo this code its return only current user detail > how i can see all sessions? > > foreach($_SESSIO

[PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
hi i want to write online user module for my site and i want to check $_SESSION['userID'] to find all users id who loged in but when i echo this code its return only current user detail how i can see all sessions? foreach($_SESSION as $k => $v) { echo $k."--".$v; } or how i handle online