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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.