arbelo Posted August 11, 2006 Share Posted August 11, 2006 Hi,I cant read a cookie under the following senario:1) I write a cookie at the URL: http://www.mydomain.com/writecookie.php2) 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??ThanksOmri Link to comment https://forums.phpfreaks.com/topic/17213-cant-read-cookie/ Share on other sites More sharing options...
corbin Posted August 11, 2006 Share Posted August 11, 2006 Cookies are client side... But!, they are set with a domain... So you need to set it for the other domain... Ive never tried to use cross domain cookies so i dont know if thats possible though... Link to comment https://forums.phpfreaks.com/topic/17213-cant-read-cookie/#findComment-72879 Share on other sites More sharing options...
arbelo Posted August 11, 2006 Author Share Posted August 11, 2006 I know that they are set with a domain, but as I explained I run the PHP script on the same domain as I wrote it.the PHP script is just being called from a page that is not on the same domain but it run on the same server as it was wrriten. Link to comment https://forums.phpfreaks.com/topic/17213-cant-read-cookie/#findComment-72884 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.