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 8605885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:57:22+00:00 2026-06-12T02:57:22+00:00

I am in the process of making a secure Web application on a remote

  • 0

I am in the process of making a secure Web application on a remote server. Is there a industry standard of preventing users from accessing web pages that are only available to users who have posted their login details.

So far authenticated user pages are protected using simple header redirects if the user do sent hold a session variable.

Is this industry standard? Are there better ways to implement such a method.

pysedo code

 Session code dosent equal value or session is null {

     header redirect to index 

}
  • 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-06-12T02:57:24+00:00Added an answer on June 12, 2026 at 2:57 am

    Like I said in my comment, redirect headers are not a security feature in their own. After you have sent a redirect header, you should make sure that normal execution can’t happen.

    For example:

    if($username != "foo" && $password != "bar")
    {
        header('Location: http://domain.org/index.php');
    }
    
    echo "Authorized page";
    

    Even if the username and password are not correct, the contents of this page can still be accessed by just ignoring the Location header.

    A simple fix would be:

    if($username != "foo" && $password != "bar")
    {
        header('Location: http://domain.org/index.php');
        die("Redirecting to home page");
    }
    
    echo "Authorized page";
    

    Furthermore, it’s important that authentication doesn’t rely on manual checks on each page, because these checks can easily be forgotten by developers. Try to automate these kind of things as much as possible.

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

Sidebar

Related Questions

I am in the process of making a PHP web application. I have a
Im in the process of making a web application with Asp.net mvc (w/html5). Following
In the process of making an old webpage standard compliant, the validator came across
I'm in the process of making a simple Todo List application based on Joosy
I'm in the process of making a Rails application be able to run on
Currently planning on making the installation process for a .NET application I'm selling smoother
In the process of making an ebook, users have to edit its content, edit
I am currently in process of making our application Large Address Aware. As experience
Alright, I'm in the process of making a C# application that uses an API
I'm in the process of making an application, but I've encountered an problem which

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.