Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.