That is by design. Perhaps we should change it. The problem is how not to 
pollute the session with un-used keys.

On Sunday, 22 September 2013 10:53:26 UTC-5, Christian Foster Howes wrote:
>
> i have noticed that if in the same browser i open the same page with the 
> same form in multiple tabs my stored session data only stores 1 form key, 
> so the most recently loaded tab will submit the form fine, the others will 
> be denied until i reload the page.  any chance you have form key 
> duplication?  or are losing the form key somehow?
>
> On Saturday, September 21, 2013 7:16:17 AM UTC-7, Ian W. Scott wrote:
>>
>> Thanks Niphlod. I submit the form and get back the same form, empty. It's 
>> as if the submitted data is just dumped and the page reloads as if nothing 
>> had been sent.
>>
>> I'll try the replacement you suggest and get back to you.
>>
>> Ian
>>
>> On Friday, September 20, 2013 5:12:35 PM UTC-4, Niphlod wrote:
>>>
>>> I can't replicate it .... but 1st thing to debug: remove that requires 
>>> and replace with a requires=IS_IN_SET(('America/Toronto')) ... 
>>>
>>> BTW: "submitting 2 or 3 times" what means exactly? that you put email 
>>> and password and you hit submit and you get back an error, the same login 
>>> form, the login form empty, .... (fill the blanks :-P) ?
>>>
>>> On Friday, September 20, 2013 10:26:39 PM UTC+2, Ian W. Scott wrote:
>>>>
>>>> Sorry for the slow response. I'm experiencing this with 2.6.3 but have 
>>>> also had the problem with the last couple of versions. It has been the 
>>>> kind 
>>>> of thing that I keep putting off debugging because I'm not sure where to 
>>>> start.
>>>>
>>>> Could it have to do with the way I'm extending the auth_user table? In 
>>>> my db.py I have
>>>>
>>>> auth = Auth(db, hmac_key=Auth.get_or_create_key())  # 
>>>> authent/authorization
>>>>
>>>> #adding custom field for user time zone
>>>> auth.settings.extra_fields['auth_user'] = [
>>>>     Field('time_zone',
>>>>           'string',
>>>>           default='America/Toronto',
>>>>           requires=IS_IN_SET((common_timezones)),
>>>>           widget=SQLFORM.widgets.options.widget
>>>>           )
>>>> ]
>>>>
>>>> Although I'm able to use the data from that field without any trouble.
>>>>
>>>> Ian
>>>>
>>>> On Wednesday, September 18, 2013 12:41:19 PM UTC-4, Massimo Di Pierro 
>>>> wrote:
>>>>>
>>>>> Which version?
>>>>>
>>>>> On Wednesday, 18 September 2013 10:15:46 UTC-5, Ian W. Scott wrote:
>>>>>>
>>>>>> I'm experiencing an odd problem where some of my forms (including 
>>>>>> registration and login forms) need to be submitted 2 or 3 times before 
>>>>>> they 
>>>>>> are processed. It's been hard to solve because it doesn't seem entirely 
>>>>>> consistent. Has anyone run into this, and does anyone have any idea what 
>>>>>> the cause would be?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Ian
>>>>>>
>>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to