Jump to content

Cant read cookie


arbelo

Recommended Posts

Hi,

I cant read a cookie under the following senario:

1) I write a cookie at the URL: http://www.mydomain.com/writecookie.php
2) at http://www.anotherdomain.com/integration.html there is something like that:
img src="http://www.mydomain.com/readcookie.php" that reads the cookie and update some stuff at my db.

if I go directlly to http://www.mydomain.com/readcookie.php, the cookie is being read.
if I go to http://www.anotherdomain.com/integration.html, the cookie is not being read.
I added an alert to http://www.mydomain.com/readcookie.php that display the domain is runs on and it returned
www.mydomain.com.

Any idea what am I doing wrong??

Thanks
Omri
Link to comment
https://forums.phpfreaks.com/topic/17213-cant-read-cookie/
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.