<a href="$PHP_SELF?s=$session[sessionhash]">link</a>
<a href="$PHP_SELF?PHPSESSID=<?php echo session_id() ?>">link</a>