a minor fix to public_html/cgi/*.php

a minor fix to the session handling