after discovering the unreliability of HTTP_REFERER
, I was wondering what was the best alternative to indicate an operation the correct url of origin which then perform an internal redirect.
After reading various topics I seemed to understand that only possible solutions are:
1) specify the referer url directly as a parameter of the operation.
2) create a custom referer storage system using session.
In my opinion, the first solution is logically more correct and free of contraindications. Using the second solution and storing the referrer in session on every page request is possible that using the site in the various tabs referrer stored does not correspond to the page where we're actually sending the operation; Despite this bug (in my opinion quite ugly) this second solution seemed the most recommended by experts. Why? Did I miss something? Thank you all for your attention and sorry for my low level of English.