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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.