Mike Orr schrieb:
> On Wed, Feb 4, 2009 at 4:30 AM, sevi <seee...@gmx.net> wrote:
>   
>> Hello all,
>> I am new to pylons and want to develop an app which generates some
>> images.
>> For each session I generate a folder to contain the images for this
>> session, which
>> the user then can download. I want the folder and the images to be
>> deleted when
>> the user closes the browser. Is there a way to do this? Am I missing
>> something obvious?
>>     
>
> You don't know when the user closes the browser.  In fact, you don't
> know anything after the user's last request, whether you will hear
> from them again or not.  The normal way to handle this is a cron job
> that deletes all sessions that have been idle for a period of time
> (say 8 hours or whatever you want).  I haven't done this in Pylons,
> but somehow you should be able to ask Beaker which sessions exist and
> when they were last modified.
>
>   
Ok, I was suspecting something like that. I will look into it, thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to