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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:20:48+00:00 2026-05-26T09:20:48+00:00

I noticed something very interesting this afternoon – when I clear my browser cache

  • 0

I noticed something very interesting this afternoon – when I clear my browser cache and cookies, Twitter immediately signs me out.

I assume they are polling for an authentication cookie every second or so via Javascript, and signing out users if the cookie is missing. Any other guesses as to how this is done?

Since this is my first encounter with this behavior, I’m wondering how common it is, the best way to accomplish it, and any security concerns one should have when implementing it (if any).

  • 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-26T09:20:48+00:00Added an answer on May 26, 2026 at 9:20 am

    The only way any site knows that you are logged in is via a cookie that your browser sends on subsequent requests. If the cookie no longer exists then by definition you are no longer logged into their site.

    I’m not exactly sure what you are asking regarding the “best way to accomplish it”.. Best way to accomplish what exactly?

    If your asking what the best way is to accomplish keeping a browser logged in via a cookie, then it boils down to storing a session or user id in the cookie. Session ID is much preferred as it is a different value for each “session”.

    Regarding how common using cookies for security is: they are pretty much everywhere. The only time cookies aren’t used for storing your session id is if the session id appears in the query string.

    Now onto security concerns. Usually those cookies have a very limited lifespan, that to your browser session so that when you close the browser the cookie expires. If the site is ssl enabled then the contents of the cookie are encrypted as they pass over the wire. If not, well, you don’t have any defense against man in the middle or packet capture attacks. (look up firesheep).

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

Sidebar

Related Questions

While performance testing, I noticed something interesting. I noticed that the very first insertion
I am relatively new to C#, and I noticed something interesting today that I
Ok, this may be a dumb question but here goes. I noticed something the
I've been some testing reserching for this other question , when I noticed something
NEW INFO: Something I just noticed (because this isn't something I'd normally do), but
I've noticed that sometimes, C macros are written as something like this: #define foo(bar)
Using SQL Server 2005. This is something I've noticed while doing some performance analysis.
I noticed something in Chrome the other day- I had opened Developer Tools, and
I've noticed something about my coding that is slightly undefined. Say we have a
For a long time now I have noticed something annoying when working on Web

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.