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

  • SEARCH
  • Home
  • 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 6830685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:38:51+00:00 2026-05-26T22:38:51+00:00

On my website that I’m developing I’ve already got all my login sorted, and

  • 0

On my website that I’m developing I’ve already got all my login sorted, and it works correctly, including session saving.

To improve the user’s security and privacy I’d like to implement some kind of “confirm your password” page whenever the user requests to view a sensitive page (such has an activity log, or changing some settings) to further prevent against session hi-jacking. I am, however, not sure how to go about doing this.

I’m unsure of the security best practises for this, and as this project site is a learning curve for me, I’d appreciate being taught.

The structure that I think I’m aiming to achieve may be like this: current page --(user goes onto history log)-> Please confirm your password --(user gets the correct password)-> history log page 1 --(user wants the next page of the history log)-> history log page 2 --(user goes to the home page)-> home page --(user goes onto history log)-> Please confirm your password --(user gets the correct password)-> history log page 1

From what I understand about doing this correctly I need to make it so that once the user navigates away from the History Log they’re no longer authorized to view it.

If someone could provide some tips on how to do this I’d be greatly appreciated. I’ve tried to search for some tutorials, but couldn’t find any (it’s completely possible I chose bad search terms), if someone could even just offer a link to a tutorial then that would be greatly appreciated too.

Thanks, Jordan.

  • 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-26T22:38:52+00:00Added an answer on May 26, 2026 at 10:38 pm

    I would simply add a $_SESSION variable for this user that gets reset when he navigates on any page that is not the history log.

    Further more, i’d use a general mechanism like this:

    On all your pages, set a

    $page_section = 'something';
    

    And then, include a small snippet that does:

    if(isset($_SESSION['last_visited_section']) && $_SESSION['last_visited_section'] != $page_section){
        //New section visited, you could reset $_SESSION['last_visited_section'] or anything relative to your security mechanism here
    }
    

    Is that of any help?

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

Sidebar

Related Questions

I am developing a website that relies much on XML data. The web site
I've got a website that I've just uploaded onto the interwebs, and it's displaying
I have a website that is perfectely centered aligned. The CSS code works fine.
I have an mvc3 website that is not styling correctly in IE9 when I
I am developing a website that has some sort of realtime update. Now the
I am developing a website that has two back to back web broadcasts. I
We have a website that uses Facebook for login. We have an invite page
I have a website that I am developing using CSS3 and I have h1
i have a website that has a simple login form. the form posts to
for website that embed flash to capture camera (red5..etc). may i know is there

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.