check if cookie exists php
snippet in php

check if cookie exists php

user2776

if (!isset($_COOKIE["lg"])) {
	setcookie("lg", "ro");
}