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

Sessions don't get extended internally from AJAX requests #652

Closed
Badgerati opened this issue Jan 5, 2021 · 0 comments · Fixed by #653
Closed

Sessions don't get extended internally from AJAX requests #652

Badgerati opened this issue Jan 5, 2021 · 0 comments · Fixed by #653
Assignees
Labels
Milestone

Comments

@Badgerati
Copy link
Owner

Describe the Bug

If you have a website that uses extendable sessions, and background AJAX requests, then these sessions only have their expiries updated on the frontend - but not the backend.

This occurs because the data of the session isn't changed, so the save/expiry-update doesn't trigger. This would also occur if you uses sessions without any session data as well.

Steps To Reproduce

  1. Have a server using extendable sessions - duration of 2mins
  2. Either don't set any session data, or have a simple AJAX request on the site to get data
  3. Refresh the page a few times, or let the AJAC requests run a few times
  4. Eventually the session will expire after a normal 2mins, rather than being extended

Expected Behavior

The sessions should be extended on the backend, as well as the frontend.

Platform

  • OS: Windows
  • Browser: Chrome
  • Versions:
    • Pode: v2.0.3
    • PowerShell: PS5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant