$_SESSION['MyAge'] = '26';
$_SESSION = array(); if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } session_destroy();
<a href="index.php?<?=SID?>">A link during a session that needs to have the session-id on the next page.</a>