Now I'm working on JSF web project. I want to use new session when user click on one new tab on browser. That means session will not be shared between different tabs. Does someone have any idea about that? What's kind of solution can help me to forbidden session share in browser tabs? Thanks.
Asked
Active
Viewed 14 times
0
-
you can't, the application doesn't know if it's running in two different tabs or if it was just opend/reloaded twice in the same tab. – Dennis Kriechel Dec 14 '15 at 08:47
-
I want to user login in the system again when he open one new tab. The previous tab will still work basing on previous session. – user3119847 Dec 14 '15 at 08:50
-
that's not possible, cookies are shared between tabs – Dennis Kriechel Dec 14 '15 at 08:53
-
but maybe you can do it with a session token in the url, but I guess you would need to implement the whole sessionscope part yourself and you won't be secured against copying the url from one tab to another. – Dennis Kriechel Dec 14 '15 at 08:55
-
Just store data of interest in a viewscoped bean instead and make use of ajax navigation. – BalusC Dec 14 '15 at 10:37