Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-31-2004, 12:03 AM   #1
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
form spam protection

What is a good method to use to prevent people submitting forms over and over. What I need is kinda like what the forum uses, where you cant submit something within x seconds after you submitted the last thing.

The site this will be implemented on(www.showoursupport.com), is in ASP(vbscript) and SQL. One method we thought of was to use a session variable and set it to x seconds. But we are already using a session variable for another thing. Can we make another session variable to use for this? If so, how do we go about doing that?

or any other ideas?

thanks
GSXdan is offline   Reply With Quote
Old 12-31-2004, 04:29 AM   #2
PCMech: Saving Lives
 
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
To create a session cookie:
Code:
Session("SessionCookiesName") = "Value"
You might want to change its name to something like LastSubmitted. Make sure your other session variable is given a unique name, overwise they will overwrite each other. You can then set the value to the time or something.
__________________
WhatsThisBoxFor? is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:15 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2