Spring Web Flow
  1. Spring Web Flow
  2. SWF-1598

Display a message when Session Expiration forces the flow to restart

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I apologize if this is a duplicate, but I didn't find one.

      When the HttpSession has expired and the user re-submits a page in the flow, he/she is sent back to the beginning of the flow. All I need to add to this behavior is a message explaining why it occurred. "You were inactive, so you have been restarted..."

      We've done various workarounds for this with a Filter or Interceptor, and even dug further into the FlowHandlerAdapter, but none of these solutions is as simple or robust as we'd like.

      I have to think that anyone else using SWF would consider this an expected capability, thus my classifying it as a Bug rather than an Improvement. But I don't really care which if it can be addressed.

      The simplest solution I envision is a default message key that can be overridden if necessary, that will cause text to be placed in a default variable on flow or flash scope to be used if a page wants to, and to be cleared automatically after this initial view after restart is displayed.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rossen Stoyanchev
            Reporter:
            Doug Breaux
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development