0

I have a problem regarding session timeout in the following Scenario.

  1. First, the user login with his valid information.
  2. After successful login, he is redirected to "PAGE1"
  3. He input some data and press "NEXT PAGE button" . Now, He will be redirected to "PAGE2". The data input by the user in PAGE1 is stored in the session attribute. So that he may go back to PAGE1 from PAGE2 by using "PREVIOUS PAGE button" .

  4. When he press "UPDATE" button , If the session timeout occurs, Login page will be redirected.

So my Requirement is: 1. He should continue his work from the same page if he successfully login without loosing any previously set data in session attribute. 2. He should go back to PAGE1 if he want.

Is it possible? What can be the possible solutions for the given scenario? I would be grateful for the suggestion. Thankyou.

4

1 回答 1

1

您可以将来自 page1 的数据输入存储在 page2 表单中的隐藏字段中。这样,页面提交来自 page1 和 page2 的所有数据,因此服务器不需要在会话中保存来自 page1 的响应。

这还允许用户在其浏览器的不同选项卡中同时填写两个表单,并减少您持有的会话数据量,因此无论如何都可以被认为是更可取的。

我认为,当您发现他们的会话超时时,您可以在登录后使用您在服务器上收到的任何请求进行重定向。

于 2013-03-01T11:42:43.600 回答