Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: clark20030702

Message # 1016902:
Date: 07/08/03 11:22
By: sbarnum Profile
Subject: Alternate suggestion

You could also track the current page count in the session, which is incremented for every page view. Include a hidden variable in the form with this value, and on the form processing page, compare the hidden pagecount with the session pagecount. If the difference between the 2 is greater than 1, you know it's a resubmit, either from reloading the form process page, or from pressing 'back' and resubmitting the form.

The advantage of doing it this way is it avoids trashing your entire session (which probably has some other useful info), and it works for users who hit reload and re-post the form. And you don't need to hope the user's browser supports must-revalidate cache control headers.

Previous Message | Next Message


Comments:
RE: page expireSunit Singh12/06/04 04:59
page expireThomas10/09/03 08:44
Thanks all!Joe Clark09/05/03 22:38
very good session techniquesuneel kanuri07/23/03 01:52
SweetPsychomantum07/17/03 18:07
SessionsDaniel07/09/03 10:51
Alternate suggestionsbarnum07/08/03 11:22
A simpler way to prevent this sort of thing..terry chay07/03/03 10:26
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.