Monday, 11 February 2019

Cookies Information Throughout the Project

cookie.php


<?php
$t=time();
echo $t;
setcookie('student','rajender',$t+1200);
?>


view.php

<?php

echo $_COOKIE['student'];

?>


for 1 day 86400
-1 day -86400 from server history 

No comments:

Post a Comment