<?php
setcookie("mobile", "244343434", time() + (86400 * 30), "/"); // 86400 = 1 day
echo "Cookie '" . $_COOKIE["mobile"] . "' is set!\n";

?>