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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:29:53+00:00 2026-06-04T11:29:53+00:00

This is an interesting issue. I am said to introduce a feature in my

  • 0

This is an interesting issue. I am said to introduce a feature in my existing application. The application must takes user consent before writing a Cookie on user system. (It is implicit that my application writes few cookies on the user system).

So the design is such that all the request to the application is intercepted, for each request the we check if there is a flag which asks the application to write cookie (this flag is sent from a special page call it IP) or it checks for a special cookie say Consent cookie on the user’s machine.

Now if the application does not see a consent Cookie on user’s machine it redirects the user to IP with its URL. On the IP there is a Accept Cookie button. If user accepts cookie an ajax request goes to the server where the code detects the flag to write cookie and writes the cookie on the user’s browser.

I can see the code to write cookie is executed, the expected behavious after this is to process the request in normal fashion. But unfortunately it redirects it back to the IP.

I have a strong feeling that the Cookies are dropped by some of the browsers. Please suggest what might be wrong here. Please also let me know how to check on my browser that it is dropping the Cookies.

I also feel that it has something to do with P3P headers. Please help.

  • 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-04T11:29:54+00:00Added an answer on June 4, 2026 at 11:29 am

    There can be two things:

    1. You are getting redirected to the IP everytime irrespective of the browser.
    2. With few browsers you are getting along into your application and with the rest you are not.

    In case 1: You need to add the P3P header into the response. Please check http://viralpatel.net/blogs/2008/12/how-to-set-third-party-cookies-with-iframe.html

    In case 2: It might be possible that few of the browsers like recent version of Mozilla Firefox(12) caches the response status if it is a re-direct. By default redirect is a permanent redirect i.e. status code 302. In this case the IP will keep redirecting to itself in Mozilla.

    Solution: You need to use a temporary redirectin i.e. status code 307.

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

Sidebar

Related Questions

As part of my ecommerce application, I have this interesting problem, I've been trying
So, this interesting issue has been plaguing me for the past couple of hours.
I ran into a interesting issue today. Check out this pseudo-code: void Loop() {
I ran across an interesting issue in some of my humanize_bytes() code. This loop
I'm facing an interesting issue with a regexp, i'm using this within a small
I have an interesting issue. I have an application where inside of it, I'm
I'm trying to troubleshoot an interesting issue from a user that involves bytecode. I
This is one of the most interesting issue that I have come across in
Ok I have an interesting issue on an iPad application I am developing. When
This is quite an interesting issue I'm having with z-indexes that I've never encountered

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.