Site structure
Version 5.x > Site structure > Common login View modes: 
User avatar
Member
Member
vlado - 5/16/2011 2:32:34 PM
   
Common login
I would like to get an advise how to approach flowing problem:
We need to have a common login page at www.website.com for all users from all companies. Each company would have own web site coming from the same codebase. After a user logs in we need to redirect him to site of his company like company1.webesite.com.
Thanks,
Vlado

User avatar
Kentico Support
Kentico Support
kentico_radekm - 5/17/2011 1:10:00 AM
   
RE:Common login
Hello.

Could you please read knowledge-base article allow, whether it fits your needs? Article describes how to redirect a user to a particular URL in case the user has a specific role, after user log in using a LogonForm web part. Thank you.

http://devnet.kentico.com/Knowledge-Base/Security-and-Permissions/How-to-redirect-a-user-to-a-particular-URL-in-case.aspx

Best Regards,
Radek Macalik

User avatar
Member
Member
vlado - 5/17/2011 6:59:45 PM
   
RE:Common login
Thank you. This looks promising. I am not sure how it would work after redirecting the user to a different Kentico site (subdomain) – I do not want him to login again. Would it work if each user is assigned to the main web site and to his own site as well? Would the second site accept the authentication?

Thanks

User avatar
Member
Member
Aon_Vlado - 5/17/2011 8:54:41 PM
   
RE:Common login
I just tested it and I think it should work.
Thanks again.
Vlado