Forums de discussion

Session sharing between two browsers

kunal shah, modifié il y a 10 années.

Session sharing between two browsers

New Member Publications: 9 Date d'inscription: 06/12/12 Publications récentes
Hello Everyone,

Im logging into liferay application which i developed, now when im trying to copy the current url and paste the url in new window and when i click on logout button in one window , the other window is still logged in with same credentials.
basically my session is not being shared between the 2 windows.

Kindly let me the resolution for this ?
Appreciate your help.
thumbnail
subhash lamba, modifié il y a 10 années.

RE: Session sharing between two browsers

Regular Member Publications: 136 Date d'inscription: 07/07/13 Publications récentes
Are sure about window. or taking about tab??
session only maintain in individual browser.
thumbnail
David H Nebinger, modifié il y a 10 années.

RE: Session sharing between two browsers

Liferay Legend Publications: 14915 Date d'inscription: 02/09/06 Publications récentes
Separate browsers (i.e. IE & Chrome) have completely different sessions, what you do in one has no effect on the other.

Some browsers (i.e. IE), separate tabs will all share the same session; logging out in one is actually also logged out in rest. Some browsers can be configured not to share sessions between tabs, so they'll act as the separate browsers line above.

But, there is nothing you can do about this. These are separate browsers and share nothing.

You could limit users to only one login (a setting in portal-ext.properties); when second is logged in, first is automatically logged out. But this will not impact the separate tabs that use a shared session.
kunal shah, modifié il y a 10 années.

RE: Session sharing between two browsers

New Member Publications: 9 Date d'inscription: 06/12/12 Publications récentes
HI David,

Thanks for your prompt reply.
Two windows i mean windows of same browser. Im logging in 2windows of chrome, session is not shared between 2 windows of same browser.


Thanks,
Kunal