How to Set Seaside 3.2 Session Timeouts (Age)

when I launch my image with the Seaside application, I have this code in the launch 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'

The parameters of the "maximum age" session are correctly displayed in the seaside configuration web application, but each session at sea remains for 30 minutes.

What is the correct way to configure session timeouts (age) dynamically using code? For Seaside 3.2 please.

+4
source share
1 answer

Does it help:

anApplication cache expiryPolicy configuration 
at: #cacheTimeout put: 1200

(from http://book.seaside.st , 18.5 Catching session end notification)

0
source

Source: https://habr.com/ru/post/1663884/


All Articles