Skip to content

Support for Spring WebSession lifecycle tracking #28164

@jakshay21

Description

@jakshay21

TL; DR;

Add support for callbacks for tracking the lifecycle of a WebSession in WebSessionStore.

Foreword

We had a use case to track journey of a WebSession. We wanted to track various aspects of it like when it was created, retrieved, saved, invalidated etc.

Problem

The session expires based on -
  1. maxIdleTime limit reached, default is 30mins
  2. maxSessions limit reached, default is 10000
  3. invalidate was called

We wanted to distinguish the sessions which were removed due to inactivity for 30mins or maxSessions limit reached.
Currently there as no such hooks for any of the methods defined in WebSession interface to track the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions