the possible reason you are getting a blank page is because of this:
if(session_is_registered('username')){
//session variable is registered, the user is ready to logout
session_unset();
session_destroy();
}
do you notice something? if the session is registed unset it and destroy, then what??? you aren't redirecting the user or anything else... that's why you get a blank page.
now, whne you go back a page and then return, you end up in the else condition of that statement and then you are redirected because of the header("Location: file...."); stuff you have.
in order for your code to work you'd have to do something like this:
<?php
session_start();
if(session_is_registered('username')){
session_unset();
session_destroy();
header( "Location: file:////location/of/logout/file.htm");
exit();
}
else{
header( "Location: file:////FMTC/public/CMS/cms_template/index.htm");
exit();
}
?>
Enjoy.