Quote:
What I would like to do is simply redirect the end user back to the page they were prior to logging in.
When end user clicks log in, they go to a secure login page. Once logged in, I want to be able to send them back to their original page.
|
This would be useful on a lot of pages. Click a button, get the action processed and return to the same page. The same as 'add to cart' with 'redirect to cart' switched off - this is achieved in cart.php by
func_header_location($HTTP_REFERER);
....
Code:
if($config["General"]["redirect_to_cart"]=="Y") {
func_header_location("cart.php");
} else{
if(!empty($HTTP_REFERER)) {
func_header_location($HTTP_REFERER);
} else {
func_header_location("home.php?cat=$cat&page=$page");
}
I think firewalls that block the referrer might cause this to fail tho.