I'm not sure of your setup for forms, but a common mistake is to not
"call" a form.  Calling a form makes a copy of it so its local
variables can't be changed.  For instance:

f = web.form.Form(
        web.form.Textbox('foo')
)


If you had that as your form, and in your GET function did this:

def GET(self):
    form = f
    return render.bar(form)

The state from the previous form might remain within that form
instance.  Instead:


def GET(self):
    form = f() # Note I'm calling it -- this makes a copy of itself
    return render.bar(form)


Just a thought, and a possible solution.  Consider isolating the
problem to a subset of your code and posting that code if it's still
not working.

Cheers,
Justin

On Mar 6, 5:35 am, "r." <[email protected]> wrote:
> Hi,
> I am using web.py 0.31, behind a lighttpd server using fastcgi. It
> works fine, except for sessions.
>
> From time to time (but not always), when someone connects to the site,
> its forms are filled with a previous user's data (contained in a
> session). The two times I was able to trace this behavior, the first
> user did not complete her form filling process (several steps). So the
> session was not killed (done during the last step).
>
> Any one for a hint?
>
> Thanks
> r.
>
> ps Mode debug is off. I have just reduced the timeout of a session to
> 30 minutes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to