It is a cool idea to transfer those who sign out to a PAGE that tells them they are signed out and maybe showing some message asking them to come back soon and, perhaps, show them some product list they might be interested with.
So, this code is a modification of auth.php
My new lines are header and exit with previous line commented out around line 200 (not sure I have some new code in this file):
if ($mode == 'logout') {<br />
<br />
fn_save_cart_content($_SESSION['cart'], $auth['user_id']);<br />
<br />
$auth = $_SESSION['auth'];<br />
<br />
if (!empty($auth['user_id'])) {<br />
// Log user logout<br />
fn_log_event('users', 'session', array(<br />
'user_id' => $auth['user_id'],<br />
'time' => TIME - $auth['this_login'],<br />
'timeout' => false<br />
));<br />
}<br />
<br />
unset($_SESSION['auth']);<br />
fn_clear_cart($_SESSION['cart'], false, true);<br />
<br />
fn_delete_cookies(AREA_NAME . '_user_id', AREA_NAME . '_password');<br />
<br />
//return array(CONTROLLER_STATUS_OK, $index_script);<br />
<br />
header('Location: /come-again.html');<br />
exit();<br />
}
```<br />
<br />
The difficulty was that none of the following worked:<br />
<br />
```php
<br />
return array(CONTROLLER_STATUS_OK, 'come-again.html');<br />
or<br />
return array(CONTROLLER_STATUS_REDIRECT, ........<br />
```<br />
<br />
For some reason these returns to a controller with a redirect page made no difference... it still would transfer them to the same page you were on while logging off.<br />
<br />
So, I had to forcibly redirect, it is not wrong but not really graceful as it could have been.<br />
<br />
Anyway, set come-again.html to GUEST view only (if you want to)