I tested the »Password Protection« and created a logout button that causes a logout function. BUT the »Page Following Logout« is not working as expected. The output does not show the selected page (all settings are correct).
Instead it »tries« to show a page called »…/index.html« that of course does not exist because Sparkle’s output of the »index page« is …/index.php. This occurs no matter which page I select as the »Page Following Logout«.
Am I doing something wrong or ist there a bug in Sparkle’s output?
Testing was with Sparkle 4 Trial / MAMP (newest version) / AND after server upload – same results.
The corresponding »logout-xxxxxx.php« shows this:
<?php session_start(); unset($_SESSION['user_id']); unset($_SESSION['username']); unset($_SESSION['user_name']); unset($_SESSION['user_surname']); unset($_SESSION['user_email']); unset($_SESSION['user_info']); unset($_SESSION['user_groups']); unset($_SESSION['user_logged']); unset($_SESSION['user_redirect']); header('Location: index.html');