Jump to content

count sessions?


ohdang888

Recommended Posts

They get deleted when session garbage collection runs and they are older than the GC maxlifetime. For the complete information, read the session handling section in the php manual. http://php.net/session

 

For your original question, if you state what you are trying to accomplish, someone might be able to tell you the best way of doing it. A session is only "active" depending on what your definition of "active" is. Web servers only receive http requests for pages. Once a page has been sent to a browser, the server goes on to service other http requests. It does not know or care what a person does in their browser or how long the look at a page...

Link to comment
https://forums.phpfreaks.com/topic/100411-count-sessions/#findComment-513537
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.