Jump to content

[SOLVED] User's status


deepson2

Recommended Posts

yes that what i asked you day before yesterday about this. like i dont want to keep user online for one page but for the whole site. but now i can put my updation query on different pages so with that i can update my last_access time accordingly.

 

If you are updating the same last_access time on all pages then it doesn't matter. Any one page will have updated the time and any other page will be checking the same time.

 

If you did want each seperate page to be recorded seperatly then you would want another table keyed on the user id and the page id with another column for the last time they refreshed that page. Not particularly difficult but also probably not really required.

 

All the best

 

Keith

Link to comment
Share on other sites

  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

If you are updating the same last_access time on all pages then it doesn't matter. Any one page will have updated the time and any other page will be checking the same time.

 

I have few pages on site that keep on user busy other than profile.php.(and there i don't need to consider user's status. i mean i not showing them online or offline yet) if user keeps himself busy on these pages and i wont updated my last_access time on those pages. than on profile.php after its 15 minutes. user status automatically become offline though he/she is active on the other pages. i think i need to update my time on each page. so that ll keep user active and wont be counting as offline user on profile.php as well.

 

i think i need to update my time on each page. what you say?

Link to comment
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.