XPages cluster and state variables

故事扮演 提交于 2019-12-05 23:21:55

While not a code best code best practise, you first need to configure your load balancer to keep users on the same session once started (probably_ using a cookie, so failover only happens when your box really goes down.

Secondly don't take scope variables to be there, always test for them - which is a good practice anyway since a session can timeout and loose its variables on a single server too. POST will fail due to a lack of x-session, so you might resort to posting only via Ajax that can have an error handler.

You could consider to use cookies to capture state information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!