[Seaside] How to configure session timeouts (age)
jtuchel at objektfabrik.de
jtuchel at objektfabrik.de
Mon Nov 28 07:13:40 UTC 2016
Mariano,
I would be interested in your experiences with 5 hours. We went for 40
minutes in order to give the server a chance to free RAM. Since Seaside
by default doesn't clean up sessions when they expire, but only when new
ones are requested, I'd be worried about memory usage with such long
session intervals...
Another question: what do maximumRelativeAge and maximumAbsoluteAge
acrually do? Is this some way of tweaking the session cleanup policy?
Joachim
Am 28.11.16 um 02:09 schrieb Mariano Martinez Peck:
> This is the way I do it and it works for me:
>
> app cache expiryPolicy configuration
> at: #'cacheTimeout'
> put: 5 hours asSeconds
>
> That should go in the code you use to register your seaside app
> (likely from a class side #initialize).
>
> Let me know if that helped.
>
> Cheers,
>
> On Sat, Nov 26, 2016 at 5:22 PM, Petr Fischer <petr.fischer at me.com
> <mailto:petr.fischer at me.com>> wrote:
>
> Hello, when starting my image with Seaside app, I have this code
> in startup method:
>
> -----
> WAMySeasideApp>>startUp: resuming
> WAMySeasideApp waApplication
> preferenceAt: #maximumRelativeAge
> put: 18000. "5 hours"
> WAEFTTasksApp waApplication
> preferenceAt: #maximumAbsoluteAge
> put: 86400. "24 hours"
> ZnZincServerAdaptor startOn: 8080.
>
> WAMySeasideApp>>waApplication
> ^ WAAdmin defaultDispatcher handlerAt: 'my-seaside-app'
> -----
>
> This "maximum age" session parameters are correctly showing in
> seaside config web app, but every seaside session is still 30 minutes.
>
> What is proper way to configure session timeouts (age),
> dynamically, via code?
>
> Thanks, pf
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> <mailto:seaside at lists.squeakfoundation.org>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel mailto:jtuchel at objektfabrik.de
Fliederweg 1 http://www.objektfabrik.de
D-71640 Ludwigsburg http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20161128/3c105d3c/attachment.html>
More information about the seaside
mailing list