Foros de discusión

Multiple Sessions with Information Message

thumbnail
Juan Camilo Quintero, modificado hace 7 años.

Multiple Sessions with Information Message

New Member Mensajes: 4 Fecha de incorporación: 13/09/16 Mensajes recientes
Hi All;

LIferay can set the property auth.simultaneous.logins in the portal.properties and this works for us, we login in another browser and the first session gets invalidated, we set the properties like this:

live.users.enabled=true
auth.simultaneous.logins=false

When the firts user navigate on the browser, the user is redirect to login page but we can't see the message "You have been logged off because you signed on with this account using a different session." on the login page.

How can we to implements that message in the login page? or can we to implement a information message to the invalidated session?

Thanks everyone.
thumbnail
David H Nebinger, modificado hace 7 años.

RE: Multiple Sessions with Information Message

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
You're not logged in yet. Is Liferay supposed to guess at how and when you are going to log in and who you are going to log in as?
thumbnail
Pankaj Kathiriya, modificado hace 7 años.

RE: Multiple Sessions with Information Message

Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
I believe Juan's question is "How to notify the user that his current session is ended because user is logged in from different client(machine/browser)"?
For example:
1. User logs in from Chrome Browser.
2. User logs in from Firefox browser.
At step.2; session created from Chrome will be ended and when member refresh the page; he will be go to login screen. At this point, User should be notified that because he is logged-in from different client/machine/place already; this session is ended.
thumbnail
Juan Camilo Quintero, modificado hace 7 años.

RE: Multiple Sessions with Information Message

New Member Mensajes: 4 Fecha de incorporación: 13/09/16 Mensajes recientes
Pankaj Kathiriya:
I believe Juan's question is "How to notify the user that his current session is ended because user is logged in from different client(machine/browser)"?
For example:
1. User logs in from Chrome Browser.
2. User logs in from Firefox browser.
At step.2; session created from Chrome will be ended and when member refresh the page; he will be go to login screen. At this point, User should be notified that because he is logged-in from different client/machine/place already; this session is ended.



Yes Pankaj that is exactly the situation we need to solve,

Thanks
thumbnail
Juan Camilo Quintero, modificado hace 7 años.

RE: Multiple Sessions with Information Message

New Member Mensajes: 4 Fecha de incorporación: 13/09/16 Mensajes recientes
Hi David;

If the user login with his userId and navigate on the portal he can use all the portlets, now when the user open another browser and login with the same userId the first session logout because we have active the two keys in the portal-ext.properties, but the first user can see the message with the details of the operation.

The administration of Live User and simultaneous sessions works perfectly but we need to show the message or a custom message in the login page.

Thanks