|
Posted by One on 12/30/06 20:20
Hi guys - I have a problem after a client clicks a Confirm button on a
form - the form processes the data, inserts into a database, and then
redirects using header Location.
I have tested this on two different Linux/Apache servers. One works
perfectly, the other takes about 90 seconds to redirect.
Has anyone seen this issue before ?
It uses a function like this :
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '1', 'SSL'));
function tep_redirect($url) {
if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We
are loading an SSL page
if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { //
NONSSL url
$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); //
Change it to SSL
}
}
header('Location: ' . $url);
tep_exit();
}
In my tests - I'll receive the confirmation email *beofre* I see the
success page in the browser!
As I say - I know the function eventually _works_ - but it was
interesting to see it work properly on the other server.
THANKS!
Navigation:
[Reply to this message]
|