Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15876

Provide hook in DefaultWebSessionManager to support creating custom WebSession implementation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0 RC3
    • Fix Version/s: 5.0 RC4
    • Component/s: Reactive, Web
    • Labels:
      None

      Description

      It would be nice if DefaultWebSessionManager provided a hook for creating a new WebSession vs instantiating it directly. This is necessary in Spring Session because Spring Session repositories allow creating a custom implementation based on the session store type. This allows for optimizations on how/when the session is persisted. For example, the Redis implementation of Spring Session tracks the changes that have been made and only persists the changes.

      Spring Session can still accomplish what it needs, but it must create its own WebSessionManager which requires a lot more work than just providing a WebSessionStore

        Issue Links

          Activity

          Hide
          rwinch Rob Winch added a comment -

          I have a Pull Request that addresses this. It is combined with efforts around SPR-15875 https://github.com/spring-projects/spring-framework/pull/1507

          Show
          rwinch Rob Winch added a comment - I have a Pull Request that addresses this. It is combined with efforts around SPR-15875 https://github.com/spring-projects/spring-framework/pull/1507

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              rwinch Rob Winch
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                12 weeks, 6 days ago