Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ticket/16470] Update user last visit time on session begin #6490

Merged
merged 10 commits into from Nov 4, 2023

Conversation

rxu
Copy link
Contributor

@rxu rxu commented Jun 11, 2023

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

PHPBB3-16470.

Update user last visit time on session begin same way as on session create.

PHPBB3-16470
PHPBB3-14173
@rxu rxu closed this Jun 15, 2023
@rxu rxu reopened this Jun 15, 2023
Previous logic doesn't work correctly as session_time value got updated
in regular manner, so that its 60 seconds lag with time_now
can be unreachable in some cases. So update user_lastvisit if it lags
for 60 sec of session_time.

PHPBB3-16470
PHPBB3-14173
@rxu rxu marked this pull request as draft June 18, 2023 12:45
rxu added 3 commits June 18, 2023 23:56
…tivity

session_time has not been updated during session_length, so relying on it last
activity data will be incorrect, especially if session_length value is high.
Thus rely on regular and properly updated user_lastvisit.
Remove user_lastvisit vs with session_time sync for the same reason.
Also get rid of the session_last_visit field as it floats between
user_lastvisit and session_time and actually is meaningless.

PHPBB3-16470
PHPBB3-14173
rxu added 2 commits June 22, 2023 14:33
This reverts changes made by last 2 commits as they seem to break things.

PHPBB3-16470
@rxu rxu marked this pull request as ready for review June 26, 2023 03:49
@marc1706 marc1706 added this to the 3.3.12 milestone Oct 4, 2023
phpBB/phpbb/session.php Outdated Show resolved Hide resolved
@marc1706 marc1706 merged commit fe84120 into phpbb:3.3.x Nov 4, 2023
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants