Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6759709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:58:49+00:00 2026-05-26T13:58:49+00:00

i have used the login script which is found here http://www.phpeasystep.com/phptu/6.html the script works

  • 0

i have used the login script which is found here
http://www.phpeasystep.com/phptu/6.html
the script works fine and i finally reach the login success page after entering the correct details.

but i need help with how do i use this for all the pages on my website. what is the header that i should be mentioning on each page that i want to be password protected and also that the user does not have to login multiple times within the website and the session to be reset in a particular period that i am able to mention

i know it might sound dumb but sorry i am a novice and don’t know programming.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:58:50+00:00Added an answer on May 26, 2026 at 1:58 pm

    your going to want to have a cookie/session set when the user logs in, and then have each page check to see if that session/cookie is set, and if it’s not redirect them to the login page.

    here is a little example on how to set the session:

    <?php
    session_start();
    $_SESSION['auth'] = "OKAY";
    ?>
    

    and here is a little snippit for each page to check for the session:

    <?php
    session_start();
    if(!isset($_SESSION['auth']))
    {
    header("Location: your_login_page.php");
    }
    //display page here
    ?>
    

    mind you this is a very basic example.

    hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used this in my HTML: <q> Hai How r u </q> Which
Here is my dilemma... I basically have a script which by means of CURL
I have a vb script (say myScript.vbs) which is used to monitor a file
I have used extension methods to extend html helpers to make an RSS repeater:
I have created a custom PHP script which uploads information submitted by a form
In my login script I have put a checkbox that people can check if
I have many VMs which are used as part of Grid. Some as RC
I have a PHP script which fetches data from Salesforce via the Salesforce API
BEFORE CHAOS I used to have this one... at the head part <script type=text/javascript>$(function()
i have a simple function i used to use to do login remotely to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.