Results 1 to 10 of 58

Threaded View

  1. #28
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default 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');
    ?>
    Last edited by ttfan; 19 May 2018 at 01:35 AM.

 

 

Similar Threads

  1. My site isn't aligned properly
    By familynow in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 9 Nov 2011, 02:02 PM
  2. "The page isn't redirecting properly" - when maintenance is on
    By sanji in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 19 Jun 2011, 06:07 PM
  3. Page not redirecting properly
    By styledata in forum General Questions
    Replies: 0
    Last Post: 20 Nov 2007, 01:07 AM
  4. The page isn't redirecting properly - HELP
    By SirBuck in forum General Questions
    Replies: 4
    Last Post: 12 Sep 2007, 05:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR