Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • reForis reForis
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 82
    • Issues 82
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TurrisTurris
  • reForisreForis
  • reForisreForis
  • Merge requests
  • !321

sessions: use client-relative session expiration

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Martin Matějek requested to merge fix/381-sessions-use-client-relative-session-expiration into master Jul 28, 2022
  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 1

This commit replaces the server-time based expires attribute with max_age, which is a timedelta relative to the client.

This fixes an issue in the reForis guide, where initial router setup was not possible due to the device's clock being out of sync with the client's.

expires has not been removed in order to be compatible with older browsers. Max-Age has precedence over Expires: https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.2.2

Fixes turris/os/packages#779 (closed)

Closes: #381 (closed)

Signed-off-by: Martin Matějek martin.matejek@nic.cz

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/381-sessions-use-client-relative-session-expiration