Answers for "how to store name in cookie and use in php mysql script as variable"

PHP
2

cookie are not set in php

setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;
Posted by: Guest on May-15-2020
2

retrieving a cookie in php

$cookiename = $_COOKIE['COOKIE ID']
Posted by: Guest on June-01-2020

Code answers related to "how to store name in cookie and use in php mysql script as variable"

Browse Popular Code Answers by Language