-2

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.

Borderless.Nomad
  • 761
  • 1
  • 10
  • 23
  • Probable dupe of http://stackoverflow.com/questions/1084114/cross-domain-cookies. Even if not a dupe, definitely got the information you need. – DaveRandom Sep 04 '11 at 21:54

1 Answers1

1

You can't create cookies for other websites!

If a user was logged in to site1, but not to site2, then you need to redirect along with some authentication to site2. Same applies vice versa.

The user will have to navigate from one site to other so that you could do it. Simply by going to www.site2.com wouldn't have them magically logged in without any data.

omasdg
  • 116
  • 3
  • This is what I have done as Google does it. Just as soon as you login you are redirected to the MySiteSSO.com and one cookie is set over there which contains some data and user is auto redirected to the source url. – Borderless.Nomad Sep 07 '11 at 17:12