Welcome to WebmasterWorld Guest from 54.162.155.183

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)

5+ Year Member



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 Jun 17, 2009 (gmt 0)

5+ Year Member



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 Jun 17, 2009 (gmt 0)

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



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

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



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

Featured Threads

Hot Threads This Week

Hot Threads This Month