On Aug 26, 7:27 pm, Jim Burgess <rails-mailing-l...@andreas-s.net>
wrote:
> I have just finished entering the same data into IE and was rather
> surprised to see that I could submit it many times.
> So, it seems to be the case that Firefox 3.5 surpresses this behaviour,
> whilst IE lets you submit your data as many times as you want.
>
> Do you think it would be possible to stop this by using a session.
>
> In PHP I would do something like this:
>
> session_start();
> if (!session_is_registered("counted")){
> $query= insert_database();
> session_register("counted");
>

That won't stop it because there is a window in between where you
check and when you set the session variable (ie a race condition).

Fred

> }
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to