Jump to content

Page(s) protection.


Braveheartt

Recommended Posts

I want to create several pages in which you have to input a password on the starting page to access. So for instance:

 

start.php - password

 

if correct redirect to home.php and access to:

 

1.php

2.php

3.php

Etc

 

if incorrect password, say so and redirect back to start.php

 

if anyone tries to open a page beyond start.php they should be instantly redirected back to start.php unless they've inputted a correct password. So, what exactly would I put on every page? I know it's to do with sessions...

 

Also should I protect each page then code in the content or vice versa?

Link to comment
https://forums.phpfreaks.com/topic/107718-pages-protection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.