CGI form repost from browser--how to prevent?

Jeff Koftinoff jeff at jdkoftinoff.com
Thu Dec 13 20:25:23 EST 2001


bit_bucket5 at hotmail.com (Chris) wrote in message news:<fa7108b0.0112121334.39185254 at posting.google.com>...
> Seems like a good idea, but due to the non-persistent nature of cgi
> (assuming I don't have mod_python or the like), I'd have to store the
> number to file, then open and read/write the file for each submission.
>  This isn't too bad (my cgi application is for a single user--a mysql
> front end), but it seems like there would be a more elegant and
> efficient approach.  Thanks for the suggestion.
> 

You have a database there, why not store the session information in a
table? If you want multiple simultaneous users, index it by a cookie
value.

Jeff Koftinoff
jeffk at jdkoftinoff.com
www.jdkoftinoff.com



More information about the Python-list mailing list