在多个选项卡中打开时

在多个选项卡中打开时

本文介绍了在多个选项卡中打开时,xPage 丢失会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我们有一个非常复杂的页面,其中包含从多个来源获取数据并利用 DOJO 和 jQuery 进行的一系列部分刷新.一切正常,没有问题.但是,当页面在同一浏览器中的不同选项卡上多次打开时,它似乎以某种方式失去了会话.部分刷新不再起作用,它继续执行 before 和 afterPageLoad.客户端的一切仍然有效,但对服务器的任何调用最终都无济于事.当我们非常快速地复制页面时,这种情况会发生得更多,如果允许页面完全加载,则问题似乎不那么频繁.告诉浏览器不要缓存似乎会使情况变得更糟,因此可能与流量过多有关.这些页面确实使用了很多 viewScopes 来存储数据,但没有使用 sessionScopes.

We have a very complicated page with a bunch of partial refreshes going on getting data from several sources and utilizing DOJO and jQuery . Everything works as it should with no problem.However, when the page is opened multiple times in the same browser on different tabs its seems to lose its session somehow. The partial refreshes don't work anymore and it keeps executing the before and afterPageLoad.Everything client-side still works, but any calls to the server end up doing nothing.This happens more when we duplicate the page very fast, if the page is allowed to load fully, the problem seems less frequent.Telling the browser not to cache seems to make it worse, so it probably has to do with too much traffic.The pages does use a lot of viewScopes to store data, but no sessionScopes.

任何查看地点的提示将不胜感激.

Any tips where to look would be appreciated.

推荐答案

看来毕竟是页面持久化.我将其更改为 40,这次我重新启动了 HTTP 任务(上次忽略了).我现在可以毫无问题地加载其他页面.现在,如果我快速加载 40 个页面,在页面加载完成之前重新加载,第一个页面将停止响应.如果我正常"加载它 40 次,一切都会正常工作.似乎服务器无法处理快速重新加载.

It seems it was the page persistence after all. I changed it to 40 and this time I restarted the HTTP task (neglected that the last time).I can now load other pages without any problems.Now if I load 40 pages fast, reloading before the page has finished loading, the first one stops responding. If I load it 'normally' 40 times everything works as it should.seems like the server can't handle the quick reloads.

这篇关于在多个选项卡中打开时,xPage 丢失会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 20:15