XF 1.5 This Person Was Last Seen

Wesker

Well-known member
#1
This issue has been a problem for over 18 months. When you click on a members username, it will display "this person was last seen" and give a date. The problem with our setup is the last time they were seen was not when they visited the site but rather when they did some form of action on the site. How do we change this so as soon as they visit the site, it will display this instead.
 

Brogan

XenForo moderator
Staff member
#2
Last activity is typically related to loading pages.

Normally, if it's an ajax request, the session activity isn't updated.
Replying to a thread is a special case though and should update the session record.
 

Wesker

Well-known member
#4

Xon

Well-known member
#5
Replying to a thread is a special case though and should update the session record.
I haven't been able to find any reference to this when a post is posted. Plus XenForo will unconditionally reset the last activity back based on the last xf_session_activity record.
 
Last edited:

Mike

XenForo developer
Staff member
#6
I haven't been able to find any reference to this when a post is posted. Plus XenForo will unconditionally reset the last activity back based on the last xf_session_activity record.
See XenForo_ControllerPublic_Thread::canUpdateSessionActivity(). It force allows it when adding a reply.
 
Top