Is it possible to create a cookie with javascript and then read it with PHP? And What about the other way around?
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.
Yes you can both set and read cookies on either side.
On the javascript side you’ll need to parse the
document.cookievariable, but there are plenty of libs to do that (jQuery has a plugin to do so).