How can I detect if page was requested via a redirect?

后端 未结 6 716
北海茫月
北海茫月 2021-01-06 05:00

On a client\'s website there are loads of redirects going to a particular page. This page somehow needs to have a way detecting whether the request was direct (URI typed in

6条回答
  •  离开以前
    2021-01-06 05:45

    Inspired by Brian I toke a step back and looked at what exactly is causing my problem.

    There may not be an answer to this question but there is a solution that partially solves problem. By using session cookies the modified content will only exist for that particular session so next time the original content becomes accessible again. This doesn't change the fact that re-enterying the url in the addressbar will still result in the page using the cookie.

    Thank you all for trying to help.

提交回复
热议问题