-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi team, Hybris cockpits run on ZK framework and we are trying to have an application in ZK which has multiple user sessions across multiple tabs of the same browser.
Right now, as with all browsers, all tabs share the same JSESSIONID in the cookie. We tried by changing the session-config tracking mode to URL in web.xml of the application which did bring the JSESSIONID to URL and remove the cookie but the Executions object had the current session set to NULL and hence we are unable to proceed.
It will be helpful to know if this option of having multiple user sessions across multiple tabs are really feasible in ZK framework.
Hello Srvna,
The following is just an idea:
Create an collection of logged in users where you will add the users, and add that to the session.
Then each time you log in, check if the session still exists and if that user is in the session collection.
Probably you will also have to implement a custom timeout per user.
Check out:
http://ben-bai.blogspot.gr/2012/12/initcleanup-sessiondesktop-in-zk.html
Best Regards,
Darksu
Hello again!
After some attempts, i arrived to the following conclusion:
There are some hints there about HTML5 sessionStorage that might help you, or the one marked as "Occam's approach" even more.
My conclusion is that having "an application in ZK which has multiple user sessions across multiple tabs of the same browser" is a bad idea at start and i am not able to think about a possible scenario where such a requirement might be fundamental... it might sound idiotic... but maybe you can define several different 3rd level domains like admins.yourdomain.com and customers.yourdomain.com?
Good luck anyway! Gio
Asked: 2016-04-12 06:30:36 +0800
Seen: 53 times
Last updated: Apr 19 '16
Did you try disabling the cookies? ZK can run without them normally so each new tab should have a new session.
chillworld ( 2016-04-12 10:04:02 +0800 )editHi chillworld, Thanks for the response. We have already tried this. Disabling cookies do not let us to login. Executions object doesnt have session tied to it, hence Execution.getCurrent() returns null and hence we are unable to proceed
Srvna ( 2016-04-12 20:46:58 +0800 )edit