prevent multiple login : Magento

" How can I prevent users to login twice from different machines? The Users should only be allowed to login once on the machine. Once he or she login into different machine, the previous machine will logout automatically. How can be implement in magento. is there any plugin that will do this task ???

Answers


There is a section "Online Customers" under Customers in Admin.

Here magento shows name, email, ip address, session start time, last activity and last url accessed.

you can call 'log/visitor_online' model and get list of all currently online customers/ visitors.

Now whenever a customer logs in, you can make a custom observer and call its function to match email of that customer with all this data you got from model.

and logout cutomer from previous device if you find a record same.

Hope you understand my point.


I wrote a small extension to enforce the rule you're looking for - allow an admin user to have only one active session. It's a beta release, so test thoroughly.

https://github.com/siliconrockstar/magento-admin-single-session


Need Your Help

regex optional group capturing JAVA

java regex

I have a pattern where a user specifies:

Is it possible to get User feed with FQL?

facebook-fql facebook-wall

Is it possible to use FQL to get user's feed?