[英]How can I force to create a new session every time I open a new browser tab with Oracle ADF and JAVA?
I'm developing a web application with oracle-ADF. 我正在使用oracle-ADF开发一个Web应用程序。 I have a page with information of client, when i open a new page with an id of another client, and I reload the page, I will have he same information.
我有一个包含客户端信息的页面,当我打开一个具有另一个客户端ID的新页面,并重新加载该页面时,我将获得与他相同的信息。 The session is shared between the pages.
会话在页面之间共享。 The browser is IE.
浏览器是IE。
How can I force to create a new session every time I open a new browser tab? 每次打开新的浏览器选项卡时,如何强制创建新会话?
You have to specify a smaller scope to the taskflow of your page as it is set to session scope by default. 您必须为页面的任务流指定较小的作用域,因为默认情况下将其设置为会话作用域。 (Data persist in the session variable of your browser) (cf. https://docs.oracle.com/cd/E15051_01/web.1111/b31974/adf_lifecycle.htm#ADFFD524 figure 21.3)
(数据保留在浏览器的会话变量中)(参见https://docs.oracle.com/cd/E15051_01/web.1111/b31974/adf_lifecycle.htm#ADFFD524图21.3)
By default, the binding container and the binding objects it contains are defined in session scope.
默认情况下,绑定容器及其包含的绑定对象是在会话作用域中定义的。 However, the values referenced by value bindings and iterator bindings are undefined between requests and for scalability reasons do not remain in session scope.
但是,在请求之间未定义值绑定和迭代器绑定引用的值,并且出于可伸缩性原因,这些值未保留在会话范围内。 Therefore, the values that binding objects refer to are valid only during a request in which that binding container has been prepared by the ADF lifecycle.
因此,绑定对象引用的值仅在ADF生命周期已准备好该绑定容器的请求期间有效。 What stays in session scope are only the binding container and binding objects themselves.
保留在会话范围内的仅仅是绑定容器和绑定对象本身。
Use as follow : 用途如下:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.