Cookie Tester

Cookies Received by the Server

Your browser sent:

None

Cookies Set in the Browser

JavaScript finds:

Copyright © 2019 Jefferson Scher. 7/27/2019

PHP to set the cookie headers:

<?php
setcookie("servertime", time(), time()+(7200) , $path = "/");
$chip = '';
if (isset($_GET['cc'])){
	$chip = trim($_GET["cc"]);
}
switch ($chip){
	case "d":
		setcookie("chocolatechip", "dark", time()+(7200) , $path = "/");
		break;
	case "s":
		setcookie("chocolatechip", "semisweet", time()+(7200) , $path = "/");
		break;
}
?>