how to redirect to a page without a trip to the client
Posted: Tue Oct 19, 2004 5:21 am
Hello
While processing page A in my server, I realize that I need to redirect the user to page B (both under the same domain own by me).
If I trigger the following code:
while this indeed works, it triggers a second trip to the server. In fact page A returns to the client where the redirect is triggered and then I return to the server to serve page B.
I was wondering if there is a possiblity to redirect to a page without performing the extra trip to the server. Here is my rationale: since I am already in the server when I am processing page A and page B is a page under the same domain as page A, then I don't see a reason why I should be able to do it.
I would appreciate any thoughts and help on this issue
While processing page A in my server, I realize that I need to redirect the user to page B (both under the same domain own by me).
If I trigger the following code:
Code: Select all
header("Location: http:// <my domain> /B.php");
exit;I was wondering if there is a possiblity to redirect to a page without performing the extra trip to the server. Here is my rationale: since I am already in the server when I am processing page A and page B is a page under the same domain as page A, then I don't see a reason why I should be able to do it.
I would appreciate any thoughts and help on this issue