KI114 Posted July 6, 2009 Share Posted July 6, 2009 I'm wanting to use a session that will be active on multiple sites at the same time. If on example.org I loaded a Javascript file (on example2.org) which requested a PHP file (also on example2.org)to get the session information, would this work? Also how would I do with with just PHP? Link to comment https://forums.phpfreaks.com/topic/164987-cross-site-session-php-ajax/ Share on other sites More sharing options...
cunoodle2 Posted July 6, 2009 Share Posted July 6, 2009 You may have to store info on a mysql database and have access from each site to said database. Either that or have a "session create.php" page for each site and use curl in the background to open up said pages and initialize a session on each different site. I did something similar before when I was with an old hosting company that had a shared SSL url and I needed session variables on both the regular site and the ssl url. Link to comment https://forums.phpfreaks.com/topic/164987-cross-site-session-php-ajax/#findComment-870038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.