I created a little hack to make it do what I want. This may work for you too until a more suitable fix presents itself.
Create a new file in the same directory as your logout page, or wherever I guess, called "logout.php". Then put this code:
Code:
<?php
session_start();
$slogin_noauthpage = 1;
include_once ("slogin_lib.inc.php");
?>
<html>
<head>
<META NAME="Robots" CONTENT="NOINDEX">
<meta http-equiv="refresh" content="3; URL=index.php">
</head>
<body>
<script language="JavaScript"><!--
setTimeout('Redirect()',4000);
function Redirect()
{
location.href = 'index.php';
}
// --></script>
You are logged out<br /><br />
Page will refresh automatically
</body>
</html>
Save this file. Then for your logout links, have it go to this page, mine looks like this:
Code:
<a href="logout.php?logout=1">logout...</a>
You can change the paths if needed of course.
Also inside logout.php change the path for the include as well.
So the way it works is when you click logout, it goes to logout.php to do the logout code, then automatically redirects to whatever page you want. Within the logout page it has two modes of refresh, HTML meta tag and also javascript. So if the browser doesn't support the meta refresh then maybe it will support the javascript version, or vice versa. The amount of time it takes to refresh can also be changed from within logout.php. That's the "3" and the "3000" I think. In milliseconds.
Hope that works for now!