Read Cookies Using Javascript
I want to create a cookie using php,an also i need to read it using javascript.ie, by using setcookie('mycookie','hello',time()+34000) in php i am creating a cookie in my system.No
Solution 1:
Here's a nice post that demonstrates this scenario. In order to make a cookie accessible through scripting languages such as javascript it must have the HttpOnly
property set to false
. This is the last parameter of the setcookie function.
Post a Comment for "Read Cookies Using Javascript"