Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need a solution please

Posted on 2004-09-19
3
Medium Priority
?
145 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 500 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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

610 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