Jump to content

cookie "style" ... undefined?


MikeDXUNL

Recommended Posts

alright, the php part of my new site is seeing that $_COOKIE['style'] is set to "light"

 

but when i try to get it from javascript. it says it is undefined...

 

here is the code after Cookie is set by PHP

 

var somevar = getCookie('style');

document.write(somevar);

 

which outputs "undefined" instead of "light"

 

any clue, any help is nice :)

 

thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/52159-cookie-style-undefined/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.