mr.AmRaLaA Posted April 4, 2011 Share Posted April 4, 2011 I want to know How to send cookies to another site Quote Link to comment https://forums.phpfreaks.com/topic/232635-how-to-send-cookies-to-another-site/ Share on other sites More sharing options...
JasonLewis Posted April 4, 2011 Share Posted April 4, 2011 As far as I know you can't 'send' a cookie to another site, but you can set the cookie to that sites domain. Refer to the setcookie() manual entry and look at the 'domain' parameter. You may be able to set the same cookie a few times and just alter the domain you are setting it for. But as I said, not 100% sure on that one. Quote Link to comment https://forums.phpfreaks.com/topic/232635-how-to-send-cookies-to-another-site/#findComment-1196532 Share on other sites More sharing options...
Adam Posted April 4, 2011 Share Posted April 4, 2011 As far as I know you can't 'send' a cookie to another site, but you can set the cookie to that sites domain. Refer to the setcookie() manual entry and look at the 'domain' parameter. You may be able to set the same cookie a few times and just alter the domain you are setting it for. But as I said, not 100% sure on that one. That's for specifying the sub-domain. You can't set a cookie for a completely different domain, there'd be a whole heap of security issues and browsers just wouldn't accept them. Quote Link to comment https://forums.phpfreaks.com/topic/232635-how-to-send-cookies-to-another-site/#findComment-1196533 Share on other sites More sharing options...
JasonLewis Posted April 4, 2011 Share Posted April 4, 2011 That does make sense though eh, possibly why I've never heard of it. Quote Link to comment https://forums.phpfreaks.com/topic/232635-how-to-send-cookies-to-another-site/#findComment-1196534 Share on other sites More sharing options...
mr.AmRaLaA Posted April 4, 2011 Author Share Posted April 4, 2011 You have applied all the manual, but not the most successful Is there such works 100% Quote Link to comment https://forums.phpfreaks.com/topic/232635-how-to-send-cookies-to-another-site/#findComment-1196708 Share on other sites More sharing options...
Adam Posted April 4, 2011 Share Posted April 4, 2011 Eh? It's not possible. Quote Link to comment https://forums.phpfreaks.com/topic/232635-how-to-send-cookies-to-another-site/#findComment-1196788 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.