I have a PHP application that has about 6 pages. I need to ensure that all the pages are accessible only after the user has logged in. For example, let me assume my pages are as follows:
Page1 : www.mysite.com/page1.php
Page2 : www.mysite.com/page2.php
Page3 : www.mysite.com/page3.php
I don't want a user to be able to cut and paste the url for page 2 into a browser and be able to access it. Only if the user has logged in should he be able to access the pages. How can this be done, this app has a mySql database. Thank you for the help.