3

我有一个 Spring 3 MVC 应用程序,该应用程序的一部分需要重定向到第三方支付网站,并且该支付网站在完成后重定向回我的应用程序。问题是 Spring 似乎创建了一个新会话而不是使用旧会话,并删除了之前存储在会话中的所有数据。这给我的应用程序带来了巨大的问题,我想知道是否有办法在外部重定向后保留会话?

此外,在我的浏览器上启用了 cookie,并且我确实验证了 cookie 中的 jsessionid 值在重定向后发生了变化,表明新会话覆盖了旧会话。

4

1 回答 1

0

Can you provide the following info:

  1. After coming back from the 3rd party site, does your app use a different domain/sub domain from what it uses before redirecting to the 3rd party site?
  2. Is there a possibility that your session timeout value is so low that the session expires by the time the user returns to your app?
  3. Does your app use frames having onunload events that invalidate the session?
于 2013-03-25T18:40:52.823 回答