<meta http-equiv="refresh" content="30;URL=./?logout=1">
Tells the browser to redirect to ./?logout=1 in 30 seconds.
<body onload="document.forms['loginForm'].submit()">
Looks for a form called loginForm and submits it.
If the page loads and and the form submits in less than thirty seconds, everything will work as expected. If not, it assume JavaScript is not enabled. This is a bad solution. Users without Javascript have to wait 30 seconds before being redirected. And there is a real chance of a false positive over a slow network connection.
Try the noscript tag:
<noscript><meta http-equiv="refresh" content="0;URL=./?logout=1"></noscript>