Jump to content

How to send cookies to another site


mr.AmRaLaA

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.