'BACK' Button Yielding Unusual Results

Discussion in 'C#' started by roddo4, Jan 24, 2008.

  1. #1
    Hello,

    I've created a web system that utilizes a Microsoft Access database. The web pages are on a secure server. I'm using ASP, and also Javascript in my HTML and ASP pages. The system basically collects enrollment information, including Name, Address, Phone Number, SSN, etc. There have been around 7000 enrollees so far, and I just recently had a comment from an enrollee, who stated that they used the BACK button feature, and when they did so, the web page displayed another enrollee's information. Unfortunately, I only received the comment second-hand from our customer service department, and do not know the details of which page or whose information was being displayed incorrectly. This is the 2nd such comment relating to this type of situation.

    From a programming standpoint, I've suppressed the browser's BACK button from displaying from a user's web browser. However, the user can still right-click on a page, and then select the 'Back' option. Most of the data that displays on the web pages is data that is passed from one page to the next. There is a page or two, however, that reads from the online database, and displays information that is intermittently saved for a particular SSN.

    I've tried to recreate the problem, but to no avail. Has anyone heard of this type of problem before? Is it possible that 2 people may be inputting information from different states at the same time, and somehow one session intercepting another session's data? Or perhaps could the problem be stemming from a browser that is not recognizing Javascript validation earlier in the process?

    I realize I'm not providing a lot to go on, but I figured that maybe somebody had encountered a similar-sounding issue already.

    Thanks in advance.

    Rod
     
    roddo4, Jan 24, 2008 IP
  2. teraeon

    teraeon Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Add in

    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

    or try putting this at the top of your asp scripts
    <% Response.CacheControl = "no-cache" %>
     
    teraeon, Jan 28, 2008 IP
  3. roddo4

    roddo4 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the help, teraeon. I'll try that. Sounds like a real good tip.

    Rod
     
    roddo4, Feb 1, 2008 IP