onbeforeunload="javascript:logout()" in an attempt to cure the 'session id not set bug'