From: Tony M. <to...@ci...> - 2004-03-17 17:03:28
|
I am writing a mailto module to allow folks to make harvest proof links easily on their websites. I am almost ready for release but I have one more thing I want to accomplish. When it goes to the thank you form after mailing the information, the user is able to refresh the page over and over and over effectively using my module to mailbomb someone. I would like to limit (possibly timewise) the number of times that an individual session can mail. I am thinking a 5 minute lag between mailing based on how mailtos are usually used. Someone reads a page, decides to mailto, and does it. They don't go to each and every link on the page sending it stuff (unless they are a spammer and we want to stop that). I'm thinking of a global variable or something like that (maybe a table that stores session and time mailed) but I don't have a good handle on how to access the session variable. Does anyone have a tutorial on what variables phpwebsite uses to store the session string for a particular session? I've grepped the source, and I must have missed something because I haven't found the info. Thanks in advance for your help, -Tony |