Search code examples
tclhttp-refererrefereropenacs

problem to get the Referer page


I'm trying to get the referer page, but i have a problem , sometimes i get bad the referer page, for example:

i have 3 pages, when the page 1 link to page 2 , and the page 2 make a process and after redirect to page 3, so when i try to get the referer page in the page 3, i get the page 1 and not the page 2,

I think that the problem is the page 2 this page doesn´t show anything to the user, is only a page who make a procedure.

Do you have any idea how i can to get the referer page correctly??

Thanks.

I'm using TCL with openacs


Solution

  • how are you sending the user from page 2 to page 3? with php:

    enter code hereheader("location:")

    or html redirect? if you are using header("location:") it will probably not work. try using html redirect like

    <meta HTTP-EQUIV="REFRESH" content="0; url=page3">