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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:36:03+00:00 2026-05-25T15:36:03+00:00

I have an iframe that: does a post request to server server returns 302

  • 0

I have an iframe that:

  1. does a post request to server
  2. server returns 302 and sets cookie
  3. browser not saves cookies but does a post(don’t know why not get but it doesn’t matter)
  4. cookie from #3 are lost

i’ve found a workaround:

Response.AddHeader("Pragma", "no-cache");
Response.AddHeader("Cache-Control", "no-cache");

but it didn’t help.
mb anybody knows what can fix this issue?

  • 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-25T15:36:03+00:00Added an answer on May 25, 2026 at 3:36 pm

    You may want to look into why your browser is doing a POST rather than a GET, since that implies that there’s an important piece of information that you left out. No browser will follow a HTTP/302 redirect with a POST.

    In IE9, redirection responses are cached if headers allow (IE8 and below would not cache redirects).

    You can absolutely set a cookie on a 302 redirect. There are two possibilities here:

    1. Your cookie is getting dropped because you failed to supply a P3P Header on the response indicating that your privacy practices are compatible with the user’s desires.
    2. Your redirection response is getting pulled from the user’s cache, not the server, and the cached response didn’t set a cookie.

    Given that you’re having this problem in an IFRAME, #1 seems more likely. (See Quick Look at P3P)

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

Sidebar

Related Questions

I have an iframe that returns data to the top.document window just fine by
I have an iFrame that does some background processing. When this processing is complete
I have a script, that does: 1. Check when iframe is 100% loaded. 2.
I have a iframe that i want to open pdf's into from a list
I have an iframe window that displays a report. To access this iframe, I
I have created an iframe code that I want people to use as a
I have a bookmarklet that will come up with a iframe that will load
I have a page which has an Iframe. In that Iframe, there are six
I have a page that has an iframe From one of the pages within
I have a UI widget that needs to be put in an IFRAME both

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.