GB_001 Posted February 2, 2008 Share Posted February 2, 2008 I made a thread asking how to update the database when a user is offline, I was suggested timestamps. When I used timestamps it wasn't accurate enough for the net app. I made, are there any alternative methods? -Thankyou, GB. Link to comment https://forums.phpfreaks.com/topic/88991-user-status-without-timestamps/ Share on other sites More sharing options...
Caesar Posted February 2, 2008 Share Posted February 2, 2008 Can you explain how it "wasn't accurate"? Time stamps are a great way to handle user sessions on a db driven login/session system. Link to comment https://forums.phpfreaks.com/topic/88991-user-status-without-timestamps/#findComment-455787 Share on other sites More sharing options...
GB_001 Posted February 2, 2008 Author Share Posted February 2, 2008 I made an app. that pops up when a user does something with another user that requires a user to be online, but with timestamps someone could be messaging another user and their browser could be closed and their timestamp isn't expired, thus showing them as online. Link to comment https://forums.phpfreaks.com/topic/88991-user-status-without-timestamps/#findComment-455802 Share on other sites More sharing options...
trq Posted February 2, 2008 Share Posted February 2, 2008 There really is no reliable way of determining if a user is online or not. Thats just the nature of client / server apps built over http. Link to comment https://forums.phpfreaks.com/topic/88991-user-status-without-timestamps/#findComment-455808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.