<?php $lang=$_REQUEST['lang']; $cookie_name = "lang"; setcookie($cookie_name, $lang, time() + (86400), "/"); sleep(2); header("Location: example.php"); ?>
info at phpclasses dot org