Friday, January 14, 2011

PHP and Javascript cookies

Programmer Question

Can I access a cookie written with jQuery's cookie plug-in with PHP? I know you can't set Javascript equal to PHP or vice versa, but IN ESSENCE is:



$.cookie('var') = $_COOKIE['var']?


Again, I know you can't set them equal to each other, but if I set it in jQuery and then go to another page, can PHP access it? I've read lots of posts about this, but I can't seem to find an answer to this part.



Note, if I look in Firefox's preferences, I can see the cookies are there, so I know they're set.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails