on the insert page, change line 128:
header("Location: ".$WA_redirectURL);
to:
session_commit();
header("Location: ".$WA_redirectURL);
if that doesnt work, to help troubleshoot, add the following code at line 1 of the detail page:
<?php @session_start(); ?>
and the following code just before the closing </body> tag of the details page to output the session being created:
<pre><?php var_dump($_SESSION); ?></pre>
post back the detail page and the session contents.