Re: logoff page isn't redirecting properly
Didn't work :(:(:(
Here is the complete file:
Code:
<?php
/**
* logoff header_php.php
*
* @package page
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: header_php.php 5403 2006-12-27 00:38:58Z drbyte $
*/
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_LOGOFF');
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);
/**
* Check what language should be used on the logoff screen
*/
$logoff_lang = ($_SESSION['languages_code'] != DEFAULT_LANGUAGE) ? 'language=' . $_SESSION['languages_code'] : '';
/**
* Check if there is still a customer_id
* If so, kill the session, and redirect back to the logoff page
* This will cause the header logic to see that the customer_id is gone, and thus not display another logoff link
*/
if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) {
zen_session_destroy();
unset($_SESSION['customer_id']);
unset($_SESSION['customer_guest_id']);
zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
}
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_LOGOFF');
?>
Re: logoff page isn't redirecting properly
Anyone else have any suggestions please?
Re: logoff page isn't redirecting properly
Did you try configuration - settings - recreate sessions - false
Re: logoff page isn't redirecting properly
Another is, in the directory: includes/mods/pages/logoff, how many files are present and what are their names?
Re: logoff page isn't redirecting properly
I assume you mean modules, not mods (in the path), as i have no mods folder?
If so, there is only one file, called header_php.php, which is the one posted above.
Re: logoff page isn't redirecting properly
Are there any PHP files (other than class.products_viewed_counter.php) present in your /includes/classes/observers directory?
Re: logoff page isn't redirecting properly
Quote:
Originally Posted by
lat9
Are there any PHP files (other than class.products_viewed_counter.php) present in your /includes/classes/observers directory?
Yes, there is:
class.google_recaptcha.php (which I'm actually not current using)
class.products_with_attributes_stock.php
Re: logoff page isn't redirecting properly
Quote:
Originally Posted by
ttfan
Yes, there is:
class.google_recaptcha.php (which I'm actually not current using)
class.products_with_attributes_stock.php
Would recommend removing (renaming the extension to something other than .php) both includes/auto_loaders file for recaptcha as well as the above class file starting with the auto_loader.
Not using and having the file(s) present are two different things. Wouldn't expect an issue on logout, but....
If that doesn't fix, then do the same test with the products_with_attributes files.
Re: logoff page isn't redirecting properly
No such google_recaptcha file in the includes.auto_loaders folder.
Can try the products_with_attributes one. Will renaming these break the shop?
Re: logoff page isn't redirecting properly
Quote:
Originally Posted by
ttfan
No such google_recaptcha file in the includes.auto_loaders folder.
Can try the products_with_attributes one. Will renaming these break the shop?
If just renaming the file(s) in the includes/auto_loaders directory, the store will operate but without the feature(s) added by the related file(s). By renaming the file(s) in the includes/classes/observers directory that do not begin with auto. there is a risk of error messages being generated.
Honestly I forget the actual action that occurs, I learned my lesson a long time ago and so install the auto_loaders type file last (if sequencing) and remove first if I want to disable something quickly.