PDA

View Full Version : Login and Return to same page



michael_s
07-28-2010, 09:01 PM
Please read this post as this contribute is not a good solution

http://forums.oscommerce.com/topic/237743-login-redirect-to-index-instead-of-previous-page/page__st__20

Credits to the forum and posters


edit includes/application_top

// navigation history
if (tep_session_is_registered('navigation')) {
if (PHP_VERSION < 4) {
$broken_navigation = $navigation;
$navigation = new navigationHistory;
$navigation->unserialize($broken_navigation);
} elseif (!is_object($navigation)) {
$navigation = new navigationHistory;
}
} else {
tep_session_register('navigation');
$navigation = new navigationHistory;
}
$navigation->add_current_page();

Please read forum for full info

Attached file is nothing

More... (http://addons.oscommerce.com/info/3129)