I have an application in which I need to validate that the request to the present page has come from a particular page. I need to display the page from which the request is supposed to come if the request has not come from that page. What could be the possible approaches? I was thinking of a encrypted value which could be present in both the pages, if that values has been passed then it means that the request has come from the desired page. If the value is NULL, then it means it has not come from the desired page. Hence I need to display the desired page from where the user is expected to come.
I was just wondering if there could be better approaches than the one I have.