Skip to content

Display a message when Session Expiration forces the flow to restart [SWF-1598] #781

@spring-operator

Description

@spring-operator

Doug Breaux opened SWF-1598 and commented

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.


Affects: 2.3.0

Reference URL: http://forum.springsource.org/showthread.php?108833-Handling-expired-session-gracefully

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions