I'm trying to figure out how to create a secure password protected area for some files in php. For example, you log in on a file called login.php and then if its sucessful, you get redirected to main.php and from there, you can go to other pages which you couldn't normally access unless u were logged in. Does any body know how to do this? Thanks