Miscellany
public text v1 · immutable<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
session_start();
if(!$_SESSION["cart"] && !$scid) {
$_SESSION["cart"] = md5(uniqid(rand()));
SetCookie("scid", $_SESSION["cart"], time() + 14400);
} /* expiration time in seconds, 14400 sec = 4 hrs */