PHP Get Cookie
The Cookies can be used to store identifiable information about a user on their computer so that the website can use or pick up on it later, even after your computer has been turned off, and you may continue from where you started. To get the information of Cookie you can use the following example
(To know Cookie in details please visit our web page http://www.roseindia.net/software-tutorials/detail/16640):
<?php //Calculate 60 days in the future //seconds * minutes * hours * days + current time
//Calculate 60 days in the future
//seconds * minutes * hours * days + current time
$inTwoMonths = 60 * 60 * 24 * 60 + time();
setcookie('lastVisit', date("G:i - m/d/y"), $inTwoMonths);
$visit = $_COOKIE['lastVisit'];
echo "You've got some cookies!";
cho "Your last visit was - ". $visit;
Your last visit was - 9:05 - 09/12/09
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.