php Sessions login pages not hidden
Posted: Wed Aug 16, 2006 4:53 am
I have a site that users have to log into to view their own members area.
The site uses sessions so when a user logs in the pages such as http://www.mysite.com/account.php show the users details.
However, if someone is NOT logged in and they just go to http://www.mysite.com/account.php they can still view the whole page but with all the bits that contain a users details are empty.
How do I make it so that these pages are not able to be viewed when a user is not logged in and that the user get's prompted to enter their username and password to login and view it properly?
Cheers
Wardy
The site uses sessions so when a user logs in the pages such as http://www.mysite.com/account.php show the users details.
However, if someone is NOT logged in and they just go to http://www.mysite.com/account.php they can still view the whole page but with all the bits that contain a users details are empty.
How do I make it so that these pages are not able to be viewed when a user is not logged in and that the user get's prompted to enter their username and password to login and view it properly?
Cheers
Wardy