Solved

Need a solution please

Posted on 2004-09-19
3
139 Views
Last Modified: 2013-12-24
We are having problems with users using the 'Back' button in their browser.

We have a page called EditInvoiceDistribution
within this page a user may need to edit a text field named "DistAmount" ; This is a numeric field only.
This field could be blank or it could be populated with existing numbers. A user will normally edit this field then they will click a button called 'Update'.

This action calls a page called EditUpdateInvoicedDistribution, which takes the figures from DistAmount and updates it in a couple tables. After the update, the page is immediately redirected to another page - EditVendorInvoice - so the user can see the changes they made.

On with the problem: Occasionally users will click the browsers back button to edit the change again. When they do this it opens the page from before called EditInvoiceDistribution - and the original numeric value appears from before in the "DistAmount" field! - NOT the value they just entered..... so they enter in a different value, click 'Update' etc. etc. This is causing  inaccurate data - which we all know can be a serious problem. Does anyone have any suggestions as to how I can prevent this from happening? If code is needed please let me know - there is quite a bit though.

Thanks
0
Comment
Question by:stltodaycom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
anandkp earned 125 total points
ID: 12099607
u cld avoid this by the way u write ur code - so that the back/refresh button is ineffective

but u cld avoid caching of the intermediate page ... so that incase they use the back button - they get a fresh copy of the intermediate page.
<cfheader name="Expires" value="-1">
<cfheader name="ExpiresAbsolute" value="Now() - 1">
<cfheader name="pragma" value="no-cache">
<cfheader name="cache-control" value="private">
<cfheader name="CacheControl" value="no-cache">

lemme know ...
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question