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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:57:46+00:00 2026-05-26T14:57:46+00:00

When I set a cookie on the client, his history still doesn’t have that

  • 0

When I set a cookie on the client, his history still doesn’t have that cookie. So when he presses back, he will get the page from his browser cache and the cookie won’t be set on those cached pages unless he does a reload.
What do I do in that case? How do I make sure that his cookie is set everywhere, even in history?

  • 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-26T14:57:46+00:00Added an answer on May 26, 2026 at 2:57 pm

    The cookie will either be set or not.

    What is most likely happening is that you press back, you’re getting a cached copy of the page, loaded when the cookie was not set. And if you think about it, that’s correct – that’s where you were, previously. It’s the actual “history” of where you went.

    Two routes you could follow:

    1. Set the cache headers on the page in question so that it gets reloaded every time. If it’s dynamically generated, this may be prefereable anyway.

    2. Set an onLoad event on the page which will check for the cookie and reload if necessary (see also this post about page events and the back button)

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

Sidebar

Related Questions

I am using urllib2 to interact with a website that sends back multiple Set-Cookie
I have following requirements: create a cookie for server domain that cookie will expire
The problem is WCF client doesn't respect server cookie (doesn't set it on the
I am trying to set a cookie in my Google App Engine page: self.response.headers.add_header('Set-Cookie','CookieName=1234;
I have a cookie set as yab_uploadmode and it has numeric value ranging from
I'd like to set a cookie via Django with that has several different values
Is it possible to set a cookie in an iPhone Application that persists, so
I have a background page in a Chrome extension that makes requests to a
I'm working on an issue that a cookie disappears after refreshing the page. I'm
I'm using GWT, and I'm trying to set a cookie on the client using

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.