arbab Posted August 22, 2009 Share Posted August 22, 2009 hi guys I want to integrate two websites.....on one server vbulletin is installed i want to restrict the users so that only people who has logged in the vbulletin forum can addess the other site....in short one login forum for both of them..... I have completed the sql part...now only problem is how to pass the cookie to the other website(different server).....IS there a way so i can pass the vbulletin cookie to the other server or read the cookie ..... I hope u have understood the question Quote Link to comment https://forums.phpfreaks.com/topic/171447-retrieving-cookies-using-php-merging-two-sites/ Share on other sites More sharing options...
ignace Posted August 22, 2009 Share Posted August 22, 2009 Not sure this works but you can pass a domain to setcookie setcookie($name, $value, $expire, '/', 'www.domain2.com'); setcookie($name, $value, $expire);//current domain Quote Link to comment https://forums.phpfreaks.com/topic/171447-retrieving-cookies-using-php-merging-two-sites/#findComment-904131 Share on other sites More sharing options...
arbab Posted August 22, 2009 Author Share Posted August 22, 2009 thanks sir for the quick reply..... I have already tried this..... I want to pass the cookies from vbulletin board to another site.... Quote Link to comment https://forums.phpfreaks.com/topic/171447-retrieving-cookies-using-php-merging-two-sites/#findComment-904132 Share on other sites More sharing options...
ignace Posted August 23, 2009 Share Posted August 23, 2009 thanks sir for the quick reply..... I have already tried this..... I want to pass the cookies from vbulletin board to another site.... I have no experience with vbulletin myself but wouldn't it allow you to specify the cookie domain? So at the first website you leave the domain as is and on the other website you specify the domain as those found on your first website. If you already tried that then it probably doesn't work this way and I'm not sure there are other possibilities. Quote Link to comment https://forums.phpfreaks.com/topic/171447-retrieving-cookies-using-php-merging-two-sites/#findComment-904366 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.