SiteMinder / Webhosting
The Computer Merchant, Ltd
US-MA-North Quincy

Justtechjobs.com Post A Job | Post A Resume

Comments for: clark20030702

Message # 1016872:
Date: 07/03/03 10:26
By: terry chay Profile
Subject: A simpler way to prevent this sort of thing..

This applies when you aren't as paranoid. This prevents a double-click of the submit as well as a back button and click again. Unlike the article, it doesn't expire the back button pages. This can be worked around if someone is being malicious.

Simply create a UID (with uniqid()) and pass it as a hidden field in the form, store this session variable with the value 'false'.

When the form is processed, changed the session variable to true. Before processing form, check to make sure the current value is false.

Since you are using a UID instead of a "alive" ticket, this has generic applicability.

Take care,

terry

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.