Showing posts with label cookie. Show all posts
Showing posts with label cookie. Show all posts

set cookie value in javascript and displaying it with php

Set in javascript

document.cookie='fcookie='+tempo; 

Get in PHP

if (isset($_COOKIE["fcookie"])) 
echo $_COOKIE["fcookie"]; 
else 
echo "Cookie Not Set";