cccreations Posted September 8, 2008 Posted September 8, 2008 I am a newbie here, but learning quickly. I am running osCommerce v2.2 RC2 w/ STS v4.5.8 . I went into catalog/includes/modules/sts_inc/general.php to try to make the header show "Log In | My Account" when a customer is not logged in and "Log Off | My Account" when the customer is logged in. But, I am now locked in an endless loop when trying to log out of the catalog. Here is the coding: // Header login / logout text if (tep_session_is_registered('customer_id')) { $sts->template['myaccount'] = '<a href=' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . ' class="headerNavigation">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; $sts->template['urlmyaccount'] = tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); $sts->template['logoff'] = '<a href=' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . ' class="headerNavigation">' . HEADER_TITLE_LOGOFF . '</a>'; $sts->template['urllogoff'] = tep_href_link(FILENAME_LOGOFF, '', 'SSL'); $sts->template['myaccountlogoff'] = $sts->template['logoff'] . " | " . $sts->template['myaccount']; // Next tags added in v4.3 $sts->template['loginofflogo'] = '<a href=' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . ' class="headerNavigation">' . tep_image(STS_TEMPLATE_DIR.'images/'.$language . '/header_logoff.gif', HEADER_TITLE_LOGOFF) . '</a>'; } else { $sts->template['myaccount'] = '<a href=' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . ' class="headerNavigation">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; $sts->template['urlmyaccount'] = tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); $sts->template['login'] = '<a href=' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . ' class="headerNavigation">' . HEADER_TITLE_LOGIN . '</a>'; $sts->template['urllogin'] = tep_href_link(FILENAME_LOGIN, '', 'SSL'); $sts->template['myaccountlogoff'] = $sts->template['login'] . " | " . $sts->template['myaccount']; // Next tags added in v4.3 $sts->template['loginofflogo'] = '<a href=' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . ' class="headerNavigation">' . tep_image(STS_TEMPLATE_DIR.'images/'.$language . '/header_login.gif', HEADER_TITLE_LOGIN) . '</a>'; } There have been no changes to any other files. Can anyone help me figure out what went wrong? This is driving me nuts! Thanks in advance!
cccreations Posted September 8, 2008 Author Posted September 8, 2008 Just figured out that this only happens for 5 minutes at a time. Could it be a session error? Is there a minimum length of time that you have to be logged in?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.