php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39402 Not able to access the desired cookie
Submitted: 2006-11-06 15:29 UTC Modified: 2006-12-18 10:00 UTC
From: pradeep_elixir at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.4.4 OS: LINUX
Private report: No CVE-ID: None
 [2006-11-06 15:29 UTC] pradeep_elixir at yahoo dot com
Description:
------------
I tried to access cookie from a php file using javascript tag:

<script language="javascript" >
source = "http://mysite.com/accesscookie.php"
document.write('\<\script language="javascript" src="' + source +'"\>\<\/SCRIPT\>');
</script>

The php script could not read the cookie stored for the damain mysite.com

Browser is Internet explorer 6.0

When I tred the same url directly in the browser it was able to read the cookie.

The problem i am facing for the Internet explorer while it is working fine in Mozila Firefox 1.5.0.7




Reproduce code:
---------------
I tried to access cookie from a php file using javascript tag:

<script language="javascript" >
source = "http://mysite.com/accesscookie.php"
document.write('\<\script language="javascript" src="' + source +'"\>\<\/SCRIPT\>');
</script>

The php script could not read the cookie stored for the damain mysite.com

Browser is Internet explorer 6.0

When I tred the same url directly in the browser it was able to read the cookie.

The problem i am facing for the Internet explorer while it is working fine in Mozila Firefox 1.5.0.7





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-07 14:13 UTC] edink@php.net
This is a browser issue, not a bug in PHP.
 [2006-12-18 09:45 UTC] pradeep_elixir at yahoo dot com
It is not related with php rather it is an issue of some privecy policies related to the browser.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 06:01:27 2025 UTC