Hi John,
Sorry, somehow I missed your message.
Clearly the latested versions of PHP are causing conflicts with this script so I need to find time to update it with fixes for the PHP changes.
As regards your specific issue, you will need to replace the session logout code with the newer methods.
In the file ac-admin>admin-logout.php replace ALL the code with this (taken directly from php.com):
- Code: Select all
<?php
// Initialize the session.
session_start();
// Unset all of the session variables.
$_SESSION = array();
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
// Finally, destroy the session.
session_destroy();
//Chris - redirect to admin login
header("Location: index.php");
?>
That should resolve the issue and ensure that at least the logout page is forward compatable.
Chris