[Seaside] purge expired sessions

Sebastian Sastre ssastre at seaswork.com
Sun Feb 22 18:27:10 UTC 2009


ah true. Now I get it. Strange that #unregisterExpiredHandlers is not taking
advantage of sending #expire to the the iterated sessions. For me it would be
interesting because I override expire (sending always super expire) in
subclasses of WASession releasing stuff.

Thanks for the tip Julian,
best,
sebastian


> -----Mensaje original-----
> De: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] En nombre 
> de Julian Fitzell
> Enviado el: Sunday, February 22, 2009 14:53
> Para: Seaside - general discussion
> Asunto: Re: [Seaside] purge expired sessions
> 
> WARegistry>>unregisterExpiredHandlers ?
> 
> It should be called periodically as sessions are created (whenever
> #shouldCollectHandlers returns true).
> 
> So expired sessions will not be garbage collected immediately but they
> should eventually be released.
> 
> Julian
> 
> On Sun, Feb 22, 2009 at 6:28 PM, Sebastian Sastre 
> <ssastre at seaswork.com> wrote:
> > Hi there,
> > I'm on seaside 2.8 and I'm seeing expired sessions not 
> being collected. Of
> > course #clearHandlers helps but that isn't helpful in a 
> production serving image
> > because it will force expiration of sessions of users 
> navigating the app.
> >
> > I wanted to know if you do (or why you don't) make a method 
> to call from time
> > that will remove from the WARegistry handlers dictionary 
> the expired sessions.
> >
> > Or maybe better, why not to remove sessions from there 
> immediately after they
> > expire so unuseful things can be collected ASAP.
> >
> > thanks,
> >
> > sebastian
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list