I am developing a system where I got lots of sites and need to enable Single SignOn between them so I decided to go for this scenario..
myssosite.com -> Sets cookie for mainsite.com with some variables. (This sites is not public) mysite1.com / mysite1.com / ..... -> If user is not logged in check for any existing cookie on myssosite.com if yes than login user else go to login page. When user logs in on any of site just create cookie on remote site myssosite.com.
Please help me as soon as possible.