Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,156
- Plugin Contributions:
- 56
Post #1 by lat9
Running 1.38a+security+FEC.
I've been fussing with the formatting/styling of the checkout screens and found that if I leave either the checkout_shipping_address or checkout_payment_address pages 'untended' for too long, I'm logged off and redirected to the shopping cart page. All the other checkout-related pages, in this case, redirect to time_out.
Here's the current code from \includes\modules\pages\checkout_payment_address\header.php (same code's in the checkout_shipping_address directory):
// if there is nothing in the customers cart, redirect them to the shopping cart page
if ($_SESSION['cart']->count_contents() <= 0) {
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
}
I'm thinking this should be changed to:
// if there is nothing in the customers cart, redirect them to the shopping cart page
if ($_SESSION['cart']->count_contents() <= 0) {
zen_redirect(zen_href_link(FILENAME_TIME_OUT));
}