Jump to content

general questions How is "time online" metered?


lunarpony7
Go to solution Solved by 碇 シンジン ,

Recommended Posts

I hope this topic explains it http://mlpforums.com/topic/113359-time-spend-online-statistic/

 

Quote from Jeric's anwer

 

 

 

We store data server side not client (browser side), give it an "id", and let the client know (and pass back at every http request) that id. That is a session and it is controlled by server configuratyion, and various files in the software's file system. Sessions expire on the server side after a set time period where there are no more requests from the client side to the server. At this point the 'clock' stops ticking. 
 
 
More specifically, The UID or Session ID is stored in the session data, server-side, after successful identification. Then for every HTTP request we get from the client, the session id (given by the client) will point you to the correct session data (stored by our server) which contains the authenticated user id - that way your code will know what user it is talking to. An HTTP request to view http://mlpforums.com...line-statistic/ will be point A in time. If you do nothing for 'x' minutes or hours (depending on server config) then the session is terminated.
 
  • Brohoof 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...