Thanks Justin ... I guess that solves it for me.

On Sep 11, 11:16 pm, Justin Davis <[email protected]> wrote:
> Sessions are written to disk or database (depending on what storage
> device you choose) via the python pickle library. When a request comes
> in, the session module identifies the user by a unique cookie and
> loads the data from disk or db, again using the pickle library.
>
> In your situation, the object would be instantiated, pickled to disk,
> and remain there until the session eventually expires (the default
> time is 1 day). It should not affect the memory usage of your running
> application during this time, but will use a (very small) amount of
> disk space until it expires.
>
> Cheers,
> Justin
>
> On Sep 10, 11:59 pm, Dexter <[email protected]> wrote:
>
>
>
>
>
>
>
> > I have a regular class with a GET and POST method.
>
> > In the POST function I want to do some processing. The POST function
> > is designed to be AJAXy and will return several different values
> > multiple times.
>
> > The first time the POST function will be called a class named Foo is
> > initiated and kept in session. The class will get incrementally
> > populated with data through AJAX. What will happen if someone sends
> > data once and then terminates the connection. How will the memory
> > allocated to the initiated class released.
>
> > Any best practices in this regard ...
>
> > Cheers
> > PK

-- 
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