Jump to content

Guest sessions


Aureole

Recommended Posts

Don't think you get it, lol  ;D yeah i dont lol

 

maybe you can do something like this

create a table that will contain all the id when they log or active and join that table into your real table having the complete data in that case you will be able to show the active and non active ???

 

 

Link to comment
https://forums.phpfreaks.com/topic/71899-guest-sessions/#findComment-362194
Share on other sites

Eh I don't get what you're saying, it's all a bit mumbled up... but thanks anyway.

 

You need something along the line of userid with a table that tracks logged_in (yes/no) and access_time (X) and current_time (Y). For each page load for userid where logged_in = yes get inactive time, where inactive time y - x > z make logged in = no. You can record access_time every time a page is accessed and call current time with a php script. Does that help?

Link to comment
https://forums.phpfreaks.com/topic/71899-guest-sessions/#findComment-362232
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.