Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Block multiple account loggins View modes: 
User avatar
Member
Member
leem - 11/3/2009 5:40:50 AM
   
Block multiple account loggins
hi,

is it possible to not allow an account to be simultaneously logged in by more than 1 person?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/12/2009 1:57:01 PM
   
RE:Block multiple account loggins
Hello.

It should be possible to ensure it if you put some custom code into appropriate page or web part (logon.aspx page or e.g. logon form web part,...). Basically, you can check if some user is already logged-in using CMS.MembershipProvider.CMSMembershipUser.IsOnline property. You can then log in user only if he is not already logged in. You can find more info and some examples here: http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.isonline.aspx

Best Regards,
Radek Macalik
Support Engineer