php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24806 How to retrive cookie from another domain
Submitted: 2003-07-25 14:36 UTC Modified: 2003-07-25 17:47 UTC
From: jeelani at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.1 OS: Linux
Private report: No CVE-ID: None
 [2003-07-25 14:36 UTC] jeelani at hotmail dot com
Description:
------------
Hi,

I tried to set a cookie in mydomain.org and try to retreive in mydomain1.com. But It does not retrieve the cookies.

Here is what I try in the mydomain.org

setcookie ("test1", "someval", time()+36000, '/', 'mydomain1.com', 0)

Then from the mydomain1.com I tried to retrieve the cookie but I dont see that cookie. Is this some bus as I have followed as documented in manual. Pls help

Thanks



Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-25 17:47 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You cannot retrieve a cookie from domainA while being on domainB.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 24 04:01:27 2024 UTC