Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1598

Display a message when Session Expiration forces the flow to restart


    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:


      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.




            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              breaux Doug Breaux
            • Votes:
              1 Vote for this issue
              3 Start watching this issue


              • Created: