Answers for "php if cookie is set"

PHP
1

check if cookie exists php

if (!isset($_COOKIE["lg"])) {
	setcookie("lg", "ro");
}
Posted by: Guest on July-30-2020
2

retrieving a cookie in php

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

Browse Popular Code Answers by Language