Update: I have found a post of someone who is having the same problem:

http://stackoverflow.com/questions/7411269/web2py-form-works-as-expected-most-of-the-time-but-occasionally-it-simply-clears
 

With the "view page source", I guess Chrome is reloading the page, so the 
session key no longer matches. 

What is the recommended solution when this seems to happen randomly to some 
pages? Sounds like removing the session from the form opens up 
vulnerabilities.

Neil

On Thursday, June 28, 2012 8:01:42 PM UTC+1, Neil wrote:
>
> I have a page with a simple form on it, and sometimes when I click the 
> submit button, the page just reloads instead of performing correct action. 
> The only way I've found to consistently reproduce the problem is to click 
> "View page source" first (I'm using Chrome). I then noticed this happens in 
> other web2py applications as well. For example, if I fill out the form here:
>
> http://www.web2py.com/examples/form_examples/form 
>
> and click "view the page source" before submitting, the data isn't 
> submitted. Does anyone know why this is? It's not a problem in my case (I 
> don't expect my users to be viewing the page source), but my hope is that 
> if I understand what causes it, I may be able to figure out why it happens 
> randomly for me *without *viewing the source.
>
> Thanks,
> Neil
>

Reply via email to