Answers for "You can call the setcookie() function at any location in your Web page."

PHP
1

setcookie php

setcookie($cookiename, $cookievalue, time() + (86400 * 30), "/"); // 86400 = 1 day
Posted by: Guest on August-18-2020
0

php page sends cookie to visitor

<?php $Month = 2592000 + time();//this adds 30 days to the current timesetcookie(UserVisit, date("F jS - g:i a"), $M
Posted by: Guest on September-29-2020

Code answers related to "You can call the setcookie() function at any location in your Web page."

Browse Popular Code Answers by Language