php - Cross Domain Sign In -


i have few domains on same server, same ip , same databases - can accessed 5 of domains.

i have remade login system, on main domain, cookie works not main domain sub domains well. means if user logs 1 area, signed in everywhere. great! write cookie hash (taken db) , check when loading each page, , automatically securely signed in.

this lovely, problem comes when switching domains, cookies seem locked down domains. other domain (lets call domain2.com) cannot read cookie domain1.com.

are there clever ways around this? write database, such ip, wouldnt secure company work on same ip , therefore wouldnt specific.

or thought maybe including hidden iframe on page, links page on main server, , pulls information way somehow.

i not sure, sure can done. ideas?

browsers, reasons, not allow cookies read other domain.

what can have domain2.com redirect page on domain1.com checks if user logged in , if redirects domain2.com user's id can log them in.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -