I am trying to destroy all form sessions as follows: i have a sidenav.php bar, when the user clicks on it, it goes to this page:
<?php
session_start();
unset($_SESSION['applicationID']);
session_destroy();
echo'<html><script>window.location="index.php?url=newapplication&id="'.$userid.';</script></html>';
?>
which in turn bring up the new application form, however, the "$userid"
fails to echo. it comes back as blank. any ideas?