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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:52:28+00:00 2026-05-19T21:52:28+00:00

Our user authentication system makes use of cookies and $_SESSION variables to determine logged-in

  • 0

Our user authentication system makes use of cookies and $_SESSION variables to determine logged-in status. Every page tests for the presence of a user_id $_SESSION variable and a user_auth cookie:

if(!isset($_SESSION['user_id']) || !isset($_COOKIE['user_auth'])){
     // send user through login
}

and sends the user through the login process if they’re not found.The logout button loads the following page:

<?php 

session_start();
setcookie('user_auth','',time()-360000,'/','domain.com');
session_unset();
session_destroy();

header("location: http://home.domain.com");

?>

In Firefox, logging out and then pressing the back button sends the user back through the login process. However, in IE6 these values are retained and the user is able to access the page again. The values are definitely being destroyed as reloading the page sends the user back through the login process, but I’d obviously prefer IE6 to send the user straight back to login as Firefox does. I have tried using no-cache and revalidate headers, to no avail.

(Before it’s suggested, using Firefox/Safari/Chrome/IE8 is not an available option.)

  • 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-19T21:52:28+00:00Added an answer on May 19, 2026 at 9:52 pm

    It’s not caching the cookie values, it’s caching the pages themselves. If you want that not to happen, you could disable the cache by using headers.

    Depending on your content, you might also want to have the usual “please clear the cache and close the window” thing on your log-out message page.

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

Sidebar

Related Questions

In the system there is a singleton for currently logged user (our own user
We're planning to use standard ASP.NET user authentication for our application. However, by default
Rarely our system mixes logged in users and I can't figure out why. Here
If a user has cookies disabled in their browser can restful authentication and role
We currently use the MSXML.dll from Classic ASP for certain parts of our system.
A user of our system (Silverlight 4/WCF Ria Services) has a problem using Internet
I'm trying to wrap up a custom authentication system for internal use for a
Cheers, We started implementing biometrics authentication in our web system and came to a
One of our user did an insert statement in development server. The insert worked
I am trying to delete an old user from our perforce installation. A previous

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.