My users should login both alfresco servers for some reasons.
However, when I login first alfresco server the second server will auto logout.
Is it about the cookies,sso or other reasons? How can I login both alfresco?
For example: I have two alfresco server with difference domain. "alfresco server 1" domain(example) = www.alfresco1.com/share "alfresco server 2" domain(example) = www.alfresco2.com/share
Because of some reasons users need to access both alfresco server.
I login to "alfresco server 1" then login "alfresco server 2". When I go back "alfresco server 1" it will logout.
What I want to do is users can login both alfresco server without re-login when users have login to other alfresco server.
There shouldn't be any issue with login to 2 different Alfresco's as long as the domain is not the same. If you are testing both Alfresco's locally, for example in http://localhost:8080/share for one and http://localhost:8081/share the other then yes, you can have problems with the cookies.
If you don't want to have to retype the login the nicest and most correct way IMHO is using SSO capable installations. There might be asier ways but they are more hackish and probably not so robust.
If the users will work in a AD domain you might just consider enabling SSO using Kerberos (http://wiki.alfresco.com/wiki/Authentication_Subsystems#Kerberos), otherwise you'll have to install and configure something like JASIG CAS and use external authentication: