aniesh82 Posted September 12, 2007 Share Posted September 12, 2007 Hello, Is it possible to share the session in two sites? I have two sites both of them having same contents in the database.. So someone login in siteA, possible to login in siteB automatically. So after login click on the link to siteB or pen the second site(site B), the person must be logined... Could someone help me? Thanks & Regards, Aniesh Joseph Quote Link to comment https://forums.phpfreaks.com/topic/68993-login-in-two-sites-simultaneously-using-session/ Share on other sites More sharing options...
phat_hip_prog Posted September 12, 2007 Share Posted September 12, 2007 when they login or first come, reset the sid to your choosing, then when go to next site you can check for same agent / ip etc and set sid same, also set a set of cookies, e.g. if come to one site, it set's a cookie and also calls other site which also set's cookie... ??? never tried this so... err be wary of first part of idea!!! Quote Link to comment https://forums.phpfreaks.com/topic/68993-login-in-two-sites-simultaneously-using-session/#findComment-346858 Share on other sites More sharing options...
aniesh82 Posted September 12, 2007 Author Share Posted September 12, 2007 Hello Thanks for your reply.. Could you please explain a little bit more? Regards & Thanks Aniesh Joseph Quote Link to comment https://forums.phpfreaks.com/topic/68993-login-in-two-sites-simultaneously-using-session/#findComment-346913 Share on other sites More sharing options...
xyn Posted September 12, 2007 Share Posted September 12, 2007 I'm not sure its possible. Quote Link to comment https://forums.phpfreaks.com/topic/68993-login-in-two-sites-simultaneously-using-session/#findComment-346915 Share on other sites More sharing options...
phat_hip_prog Posted September 12, 2007 Share Posted September 12, 2007 No i'm not, but... A page is requested on site A, site A set's a cookie. This includes a page from site B which set's a cookie from site B. Then when visit site B, a cookie is already present! Do vice-versa... Idea came from affiliate ads!!! Quote Link to comment https://forums.phpfreaks.com/topic/68993-login-in-two-sites-simultaneously-using-session/#findComment-346916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.