Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2207

It should be possible to be notified of session creations and invalidations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.3, 5.4
    • None
    • tapestry-core

    Description

      There are cases when it would be very helpful if one could subscribe to the creations and invalidations of sessions.

      • Clear parts of a cache when a session is no longer valid
      • Show how many users are currently using the application

      Something like a `SessionStateHub` could be added, that is triggered when a `SessionImpl` is created or invalidated. Then, there should be methods to register listeners, e.g. `addSessionCreatedListener`, `addSessionWillBeInvalidatedListener`, `addSessionInvalidatedListener`.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jkemnade Jochen Kemnade
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: