Solved

Need a solution please

Posted on 2004-09-19
3
135 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
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can I install php on a ngxin server on droplet 5 134
how to enable php7 module in nginx configuration file 8 389
Internal DNS Zone Issue 13 72
WebSite Direction 1 38
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now