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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:37:50+00:00 2026-05-31T04:37:50+00:00

I am trying to cater for a user using their browser back button to

  • 0

I am trying to cater for a user using their browser back button to access a page which contains multiple drop down lists (some are shown on selection of others using jQuery). When the user makes a room selection, advances to the next page, returns using the browser back button and makes a different selection I am resetting the drop-down lists on page load. When the user then advances again using Chrome and IE I get the following correct array structure:

Array
(
    [15] => Array
        (
            [12] => Array
                (
                    [num_rooms] => 0
                    [price] => 39.5
                )

            [15] => Array
                (
                    [num_rooms] => 1
                    [adults] => Array
                        (
                            [0] => 2
                        )

                    [prices] => Array
                        (
                            [0] => 49.5
                        )

                    [roomTotalPrice] => Array
                        (
                            [0] => 49.5
                        )

                    [price] => 99
                )

            [14] => Array
                (
                    [num_rooms] => 0
                    [price] => 49
                )

            [16] => Array
                (
                    [num_rooms] => 0
                    [price] => 39.5
                )

            [13] => Array
                (
                    [num_rooms] => 0
                    [price] => 39.5
                )

        )

This is correctly showing number of ‘adults’ for the selected room/rate combo, room 15 and rate 15.
When I run the exact same code in Firefox the array is getting corrupted in the following manner:

Array
(
    [15] => Array
        (
            [12] => Array
                (
                    [num_rooms] => 0
                    [price] => 39.5
                )

            [15] => Array
                (
                    [num_rooms] => 1
                    [price] => 99
                )

            [79] => Array
                (
                    [adults] => Array
                        (
                            [0] => 2
                        )

                    [prices] => Array
                        (
                            [0] => 49.5
                        )

                    [roomTotalPrice] => Array
                        (
                            [0] => 49.5
                        )

                )


        )

Rather than adding the ‘adult’ data to room/rate 15 it is getting added to a non existent rate ’79’.

Any advice as to why Firefox might be doing this?

  • 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-31T04:37:51+00:00Added an answer on May 31, 2026 at 4:37 am

    Adding the following code to the page prevented Firefox from caching the data and resolved the issue:

    <?php
    header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
    header('Pragma: no-cache'); // HTTP 1.0.
    header('Expires: 0'); // Proxies.
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to do this sort of thing... WHERE username LIKE '%$str%' ...but using bound
I am currently trying to implement a serial port reader class using Windows (already
I'm trying to learn assembly using Dr Paul Carter's pcasm book: http://www.drpaulcarter.com/pcasm/ The author
I'm working on an application using ASP.NET MVC 1.0 and I'm trying to inject
I’m trying to create a COM User Defined Function automation add in for Excel
I'm trying to get links from table in HTML. By using HTML::TableExtract , I'm
Trying to create an SSIS package to process a Datacube. Using SMS 2008, I've
Trying to deploy application using ClickOnce to a webserver running sharepoint. I can publish
I am trying to create a match query which selects text from a string
I'm trying to add some contacts from an xml file which have been serialize

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.