Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

login


martyn4000

Recommended Posts

I think that wasnt even a contribution because it's a very simple mod in the application_top.php There was a thread somewhere I think it was the tips and tricks forum but basically you check if the customer_id session is on and if not you redirect them to the login page. This should work regardless of page. In other words in your application_top.php after the sessions are initialized you do.

 

if(!tep_session_is_registered('customer_id') && basename($PHP_SELF) != FILENAME_LOGIN) {
  tep_redirect(tep_href_link(FILENAME_LOGIN));
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...