Jump to content


Cant read cookie

  • Please log in to reply
2 replies to this topic

#1 arbelo

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 11 August 2006 - 06:11 AM


I cant read a cookie under the following senario:

1) I write a cookie at the URL: http://www.mydomain....writecookie.php
2) at http://www.anotherdo...ntegration.html there is something like that:
img src="http://www.mydomain....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.anotherdo...ntegration.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

Any idea what am I doing wrong??


#2 corbin

  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 11 August 2006 - 06:16 AM

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...
Why doesn't anyone ever say hi, hey, or whad up world?

#3 arbelo

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 11 August 2006 - 06:26 AM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users