title: How to check in PHP whether page is directly loaded or being redirected from other page?
body: <p>Suppose I am having two pages Page1.php and Page2.php. Sometimes Page1.php is directly loaded and sometimes it is being redirected from Page2.php. My question is that can I check whether Page1.php is directly loaded or it's being redirected from the Page2.php.(if query string is not used)</p>