Cookie Tester

View on: jeffersonscher.com or www.jeffersonscher.com. Press Shift+F9 to open the Storage Inspector.

Cookies Received by the Server

Your browser sent:

None

Cookies Set by the Server

Server is returning updated cookie values for: servertime

Cookies Visible in the Browser

JavaScript finds:

Copyright © 2020 Jefferson Scher. 9/12/2020

PHP to set the cookie headers:

<?php
setcookie("servertime", time(), time()+(180) , $path = "/", $domain = "jeffersonscher.com");
$updates = 'Server is returning updated cookie values for: <code>servertime</code>';
$chip = '';
if (isset($_GET['cc'])){
	$chip = trim($_GET["cc"]);
}
switch ($chip){
	case "d":
		setcookie("chocolatechip", "dark", time()+(180) , $path = "/", $domain = "jeffersonscher.com");
		break;
	case "s":
		setcookie("chocolatechip", "semisweet", time()+(180) , $path = "/", $domain = "jeffersonscher.com");
		break;
}
?>