Welcome to WebmasterWorld Guest from 23.22.182.29

Forum Moderators: open

Message Too Old, No Replies

Cookies set for .example.com not read by Javascript

     
8:57 am on Jun 17, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:July 11, 2008
posts: 88
votes: 0


We are setting cookies using PHP code for .example.com (note the leading dot) so that it can be accessed by all sub-domains etc. as per http://example.com/phpCookie

This cookie however is not being read by Javascript. Any ideas on how/why?

Thanks, (I hope my question is clear?)
--

[edited by: coopster at 12:09 pm (utc) on June 17, 2009]
[edit reason] please use example.com, thanks! [/edit]

7:23 pm on June 17, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:July 11, 2008
posts:88
votes: 0


The URL has been edited to be incorrect, the correct URL is [us.php.net...]

[edited by: coopster at 9:35 pm (utc) on June 17, 2009]
[edit reason] removed non-authoritative url [/edit]

9:38 pm on June 17, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


It may be an httponly [webmasterworld.com] cookie.
9:41 pm on June 17, 2009 (gmt 0)

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5550
votes: 24


Are you trying to set and read the cookie on the same page?
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members