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 Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment 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.