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

Add session refresh functionality with tests #22

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

justinfarrelldev
Copy link
Owner

This PR is to add functionality that ensures that when a player makes any form of interaction, it refreshes the time it will take for them to time out of their session.

For example, when a player first initializes a session, they have 12 hours before they are logged out.

If they do not interact further, they will no longer be logged in when the 12 hours is up.

However, let's say that they update their account information an hour after their session. This would mean the timer would be reset to 12 hours, meaning that the player will have had 13 hours logged into the server. This functionality would prevent someone from being logged out in the middle of a match.

The "refreshing the session" portion of the above is what this PR is meant to fulfill.

@justinfarrelldev justinfarrelldev self-assigned this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant