Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to Redirect user after login/registering on the site to the page he was present before login.


prinshaw

Recommended Posts

Posted

Hi,

 

On my site shoppiiers.com i want to Redirect user after login/registering on the site to the page he was present before login instead of account.php , i think its done using Session but dont know how to do it due to lack of coding hehe..

 

Pls give solution..

Thanks in Advance...!

  • 2 weeks later...
Posted

the redirect code function responsible for where your pages go is:

 

tep_redirect(tep_href_link(WHATEVER FILE IT SHOULD REDIRECT TO));

 

so a redirect to the index.php page is: tep_redirect(tep_href_link(FILENAME_DEFAULT));

 

you can take a look at your files and find the redirect function and where it is pointing to, that should get you started. Backup your code before messing with it, I like to comment out the original code with // in case I make a mistake.

Archived

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

×
×
  • Create New...