Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
DIsable multiple logins with same user Eugene V C 26 de octubre de 2008 22:39
Moved thread Jorge Ferrer 27 de octubre de 2008 3:29
RE: DIsable multiple logins with same user Tobias Amon 27 de octubre de 2008 3:59
RE: DIsable multiple logins with same user Eugene V C 6 de noviembre de 2008 10:48
RE: DIsable multiple logins with same user Maulin Rathod 7 de noviembre de 2008 1:37
RE: DIsable multiple logins with same user Jorge Ferrer 7 de noviembre de 2008 12:18
RE: DIsable multiple logins with same user Maulin Rathod 11 de noviembre de 2008 1:32
RE: DIsable multiple logins with same user mo mo mo 21 de noviembre de 2008 23:05
RE: DIsable multiple logins with same user Maulin Rathod 25 de noviembre de 2008 18:01
RE: DIsable multiple logins with same user don busky 15 de enero de 2009 12:41
RE: DIsable multiple logins with same user prathyush kp 22 de enero de 2009 4:09
RE: DIsable multiple logins with same user Manish Kumar Gupta 14 de diciembre de 2011 3:51
RE: DIsable multiple logins with same user MICHAIL MOUDATSOS 26 de abril de 2012 0:47
RE: DIsable multiple logins with same user pooja mahajan 18 de febrero de 2013 22:37
RE: DIsable multiple logins with same user MICHAIL MOUDATSOS 19 de febrero de 2013 5:18
RE: DIsable multiple logins with same user pooja mahajan 26 de febrero de 2013 1:40
RE: DIsable multiple logins with same user MICHAIL MOUDATSOS 26 de febrero de 2013 2:10
RE: DIsable multiple logins with same user pooja mahajan 26 de febrero de 2013 22:37
RE: DIsable multiple logins with same user Joe R 2 de junio de 2014 4:56
Eugene V C
DIsable multiple logins with same user
26 de octubre de 2008 22:39
Respuesta

Eugene V C

Ranking: New Member

Mensajes: 2

Fecha de incorporación: 26 de octubre de 2008

Mensajes recientes

Hi,

Is there a way to prevent or disable multiple logins with same user?

Thanks
Jorge Ferrer
Moved thread
27 de octubre de 2008 3:29
Respuesta

Jorge Ferrer

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2768

Fecha de incorporación: 31 de agosto de 2006

Mensajes recientes

Hey Eugene,

I've moved your post to a category that is more appropriate to your question. That way you'll have more chances of getting answers.

Regarding your question, I think there is a property that controls that in portal.properties.
Tobias Amon
RE: DIsable multiple logins with same user
27 de octubre de 2008 3:59
Respuesta

Tobias Amon

Ranking: Liferay Master

Mensajes: 549

Fecha de incorporación: 8 de agosto de 2007

Mensajes recientes

Hi,

Jorge is right. There is "auth.simultaneous.logins=true" . Set it to false and you're done.

kind regards
Tobias
Eugene V C
RE: DIsable multiple logins with same user
6 de noviembre de 2008 10:48
Respuesta

Eugene V C

Ranking: New Member

Mensajes: 2

Fecha de incorporación: 26 de octubre de 2008

Mensajes recientes

Hi,

Thanks guys, but I look at portal.properties and i can't find the "auth.simultaneous.logins=true".

By the way i'm using Liferay 5.1.1 bundled with glassfish. :-)

Thanks,
Maulin Rathod
RE: DIsable multiple logins with same user
7 de noviembre de 2008 1:37
Respuesta

Maulin Rathod

Ranking: Junior Member

Mensajes: 61

Fecha de incorporación: 6 de noviembre de 2008

Mensajes recientes

We are facing problem.

In LifeRay 5.1.2 source i found that "auth.simultaneous.logins" key is OBSOLETE in com.liferay.portal.util.PropsUtil.VerifyProperties class.

private static final String[] _OBSOLETE_PORTAL_KEYS = new String[] {
"auth.simultaneous.logins"
};

Is there any other solution for that.

Any suggestions will be appreciated.
Jorge Ferrer
RE: DIsable multiple logins with same user
7 de noviembre de 2008 12:18
Respuesta

Jorge Ferrer

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2768

Fecha de incorporación: 31 de agosto de 2006

Mensajes recientes

Hi Maulin,

You're right, I hadn't noticed it but that property has been removed recently. I've done some research and found that it might be related to http://support.liferay.com/browse/LEP-5239, although I can't tell for sure since the connection of JIRA and subversion is not working properly right now.

I would recommend you to do some further research on the LEP tickets and commits to find out what was the reason.
Maulin Rathod
RE: DIsable multiple logins with same user
11 de noviembre de 2008 1:32
Respuesta

Maulin Rathod

Ranking: Junior Member

Mensajes: 61

Fecha de incorporación: 6 de noviembre de 2008

Mensajes recientes

Thanks Jorge.
We will write our own logic in following class to prevent multiple logins with same user.
login.events.post=com.liferay.portal.events.LoginPostAction,com.asite.liferay.portal.events.AsiteDefaultLandingPageAction
mo mo mo
RE: DIsable multiple logins with same user
21 de noviembre de 2008 23:05
Respuesta

mo mo mo

Ranking: New Member

Mensajes: 1

Fecha de incorporación: 21 de noviembre de 2008

Mensajes recientes

hye, anyone have solution for this? cos i really need this to be added to my portal so that the same user cannot login at multiple terminal at a time. im using 5.1.1
Maulin Rathod
RE: DIsable multiple logins with same user
25 de noviembre de 2008 18:01
Respuesta

Maulin Rathod

Ranking: Junior Member

Mensajes: 61

Fecha de incorporación: 6 de noviembre de 2008

Mensajes recientes

Hi Mo,

As I mentioned in earlier comment, you need to write you own logic to handle this. What you can do is create one class which implements logic to disable multiple logic with same user. Add your class to following property of portal-ext.properties file

login.events.post=com.liferay.portal.events.LoginPostAction,com.asite.liferay.portal.events.DefaultLandingPageAction,yourclass

So after login, portal will execute your code.
don busky
RE: DIsable multiple logins with same user
15 de enero de 2009 12:41
Respuesta

don busky

Ranking: New Member

Mensajes: 10

Fecha de incorporación: 1 de octubre de 2007

Mensajes recientes

Hi Maulin,

I had this same problem and came upon this thread. This was a feature i was using in previous versions until i migrated my portal site. Unfortunately i just realised this after a few months and i can not go back to the old version of liferay.

Can you please explain better, possibly with code snippets on how to implement your suggestion i.e custom logic to disable multiple user login? Any tips, or code sample would be most appreciated.

I wonder why this was made obsolete. This is a security feature that i think would be most welcome in any organisational setup, for which i assume liferay is targeted. Does anyone know if this feature will be re-enabled in 5.2?

Thanks.
prathyush kp
RE: DIsable multiple logins with same user
22 de enero de 2009 4:09
Respuesta

prathyush kp

Ranking: New Member

Mensajes: 11

Fecha de incorporación: 14 de enero de 2009

Mensajes recientes

Hii friends am also fasing same problem ... plz help me with some sample code
Manish Kumar Gupta
RE: DIsable multiple logins with same user
14 de diciembre de 2011 3:51
Respuesta

Manish Kumar Gupta

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 535

Fecha de incorporación: 15 de mayo de 2008

Mensajes recientes

Just for the records, this problem has now been resolved by LPS-21168
MICHAIL MOUDATSOS
RE: DIsable multiple logins with same user
26 de abril de 2012 0:47
Respuesta

MICHAIL MOUDATSOS

Ranking: Regular Member

Mensajes: 110

Fecha de incorporación: 4 de octubre de 2011

Mensajes recientes

Following the LPS-21168 I understand that this is solved for Liferay 6.1 CE (I assume GA) and not for 6.0.6, is this correct?
pooja mahajan
RE: DIsable multiple logins with same user
18 de febrero de 2013 22:37
Respuesta

pooja mahajan

Ranking: Junior Member

Mensajes: 45

Fecha de incorporación: 29 de enero de 2013

Mensajes recientes

Hi,

I am working on liferay 6.1.1.
Task: I need to restrict simultaneous login for sibgle user in different terminal

Solution suggested:
portal-ext.properties
auth.simultaneous.logins=false
live.users.enabled=true

Still it is not working. Can anyone please help
MICHAIL MOUDATSOS
RE: DIsable multiple logins with same user
19 de febrero de 2013 5:18
Respuesta

MICHAIL MOUDATSOS

Ranking: Regular Member

Mensajes: 110

Fecha de incorporación: 4 de octubre de 2011

Mensajes recientes

Hello,

I had to implement this myself in 6.0.6 . I suppose the same could be achieved in 6.1, though I haven't tried it yet.

I created a hook to provide this functionality.

The hook targeted the login.events.post property in portal.properties

I created an implementation of com.liferay.portal.kernel.events.Action (i.e. I extended it). I assigned this new class to the aforementioned property. The idea is that I have a post login event that will do the job after a user logins. If the user that has just logged in is found to be already logged in, then I should implement the desired behavior.

Now assuming that the desired behavior is to log out the user that is already logged in, or in more precise words, invalidate the session with which the same user has already been logged in, I must find a way to fetch its session.

Since I didn't know of anything already implemented (like a Liferay util that might provided that), and for a good reason if u ask me, I had to do all this session management myself. i.e, be responsible to 'store' the session when a user logs in. Then I could do whatever I wanted with it if it was needed, and in this case (simultaneous logins) it is.

In order to manage the sessions I made use of the HttpSessionBindingListener interface. It provides methods for manipulating the session at creation and destruction. I used mappings to keep such info as servlet context attributes.

The only pitfall here is that this implementation is based on Servlet Context storage thus it is effective as long as sessions are not persisted between server restarts. This is something you can control though. Depending on your app server, you can define whether you want sessions to be persisted between server restarts. For example in tomcat, at tomcat-xxx/conf/context.xml there's a configuration in comments which says
1<!-- Uncomment this to disable session persistence across Tomcat restarts -->
2    <!--
3    <Manager pathname="" />
4    -->
I hope I helped
pooja mahajan
RE: DIsable multiple logins with same user
26 de febrero de 2013 1:40
Respuesta

pooja mahajan

Ranking: Junior Member

Mensajes: 45

Fecha de incorporación: 29 de enero de 2013

Mensajes recientes

pooja mahajan:
Hi,

I am working on liferay 6.1.1.
Task: I need to restrict simultaneous login for sibgle user in different terminal

Solution suggested:
portal-ext.properties
auth.simultaneous.logins=false
live.users.enabled=true

Still it is not working. Can anyone please help




i don't know why above properties are not working on liferay 6.1.1
MICHAIL MOUDATSOS
RE: DIsable multiple logins with same user
26 de febrero de 2013 2:10
Respuesta

MICHAIL MOUDATSOS

Ranking: Regular Member

Mensajes: 110

Fecha de incorporación: 4 de octubre de 2011

Mensajes recientes

pooja mahajan:
i don't know why above properties are not working on liferay 6.1.1
Neither do I.
Did you try what I suggested?
pooja mahajan
RE: DIsable multiple logins with same user
26 de febrero de 2013 22:37
Respuesta

pooja mahajan

Ranking: Junior Member

Mensajes: 45

Fecha de incorporación: 29 de enero de 2013

Mensajes recientes

I haven
t tried hook functionality.. suggested by you. [will try soon]
But was dependent on following property file change. as they are provided in liferay 6.1.1

portal-ext.properties
auth.simultaneous.logins=false
live.users.enabled=true
Joe R
RE: DIsable multiple logins with same user
2 de junio de 2014 4:56
Respuesta

Joe R

Ranking: New Member

Mensajes: 1

Fecha de incorporación: 1 de junio de 2014

Mensajes recientes

None of the properties is solving this
issue. Have anyone solved this