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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:07:30+00:00 2026-06-13T20:07:30+00:00

For an application that I am building, we are using Redis as the session

  • 0

For an application that I am building, we are using Redis as the session storage medium.

The other day, one of our testers noted that when he logged out and then immediately tried to access a protected URI (within about 1 second of logging out), his old session data was still being used.

Stepified:

  1. User logs in as Account A.
  2. User logs out.
  3. User immediately accesses protected URI.
  4. User is logged in as Account A again.

I think what is happening is this:

  1. User logs out, so application clears the user’s session and sends the empty session to Redis for storage.
  2. Before the change “takes”, the user accesses a different resource (e.g., the sign-in form or a protected URI).
  3. The application requests the session from Redis, which still contains the logged-in session values.
  4. The application sends the updated session back to Redis, overwriting the logged-out session.

Is this a correct diagnosis? Does Redis have a delay between accepting a SET and actually updating the stored value? Or should I be investigating something in my application logic?

  • 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-13T20:07:31+00:00Added an answer on June 13, 2026 at 8:07 pm

    There is no delay in the execution of SET command. If redis-server returns successfully, and your client library reports a success – you can be sure that redis has written the data.

    I’d recommend looking at your application stack. Perhaps the session handler is invalidating sessions asynchronously?

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

Sidebar

Related Questions

We are building application that stores objects to isolated storage using .NET runtime serialization.
I'm building a windows application that search items from sharepoint document libraries, using the
I am building a web application using ASP.NET MVC that has two very distinct
I am building a web application and have been told that using object oriented
I'm building a WinForms application Window (form), inside that I'm using a FlowLayoutPanel, with
I have a web application that I am building using IDEA. There are some
I'm working with a new application at work that we're building out using Knockout.js
I am building a twitter application that is currently using the classic login instead
I am building an application that has the functionality like 3 tabs created using
OK, I am building an application that will be using ASIHttpRequest in several places

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.