homepage Welcome to WebmasterWorld Guest from 54.205.189.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Cookies set for .example.com not read by Javascript
iamvela




msg:3934982
 8:57 am on Jun 17, 2009 (gmt 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]

 

iamvela




msg:3935437
 7:23 pm on Jun 17, 2009 (gmt 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]

coopster




msg:3935523
 9:38 pm on Jun 17, 2009 (gmt 0)

It may be an httponly [webmasterworld.com] cookie.

LifeinAsia




msg:3935525
 9:41 pm on Jun 17, 2009 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved