Is there a difference between javascript cookies and php cookies?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HTTP Cookies are not a feature of PHP, nor a feature of Javascript : those are just programming languages that allow a developper to manipulate them.
The biggest difference between JS and PHP is that :
But cookies are still the same : they are defined as a standard — see RFC 2965.
Still, note that modern browsers implement cookies that are not accessible from Javascript (see the
httponlyoption ofsetcookie) — which means that, depending on the browser, and the way a cookie was set, it might not be accessible from Javascript.This is a security measure — and is not a difference between "js cookies" and "php cookies" : it’s just a property of some cookies.