<div dir="ltr">Hi Petr,<div><br></div><div>I have already a solution for redirect to login page  and show message after session was timed out in the browser.</div><div><br></div><div>I want to log in a file on the server each login and logoff of the users. Login no problem, logoff with logoff button either.</div><div>But hose sessions which are not terminated by the user (not clicking on "logout") would not be logged so far.</div><div><br></div><div>For this reason I wanted to log them when their session was timed out (also if the user does not come back and finds its session dead, e.g. if the user simply closes the browser or shutdown the system).</div><div><br></div><div>As far as I understand now after reading this post </div><div> <a href="http://forum.world.st/Seaside-sessions-not-being-either-unregistered-or-GCed-td4835659.html#a4835753" rel="nofollow" target="_blank" link="external">http://forum.world.st/Seaside-<wbr>sessions-not-being-either-<wbr>unregistered-or-GCed-<wbr>td4835659.html#a4835753</a><br></div><div><br></div><div>this is not done immediately after my defined timeout e.g.</div><div>anApplication configuration at: #maximumRelativeAge put: 3600.<br></div><div><br></div><div>and also not in >>unregistered</div><div><br></div><div>but only when the garbage collection finds this session or so....</div><div><br></div><div>So I don't have a solution for the "log-when-session-ended-without-logoff" yet.</div><div><br></div><div>Regards</div><div>Sabine</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-21 12:57 GMT+01:00 Petr Fischer-2 [via Smalltalk] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4930188&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="gmail-">

        What do you want to do when session timeouted? Something on the server, or on the web client (eg. show login page with proper message immediately after timeout)?
<br><br>pf
<br></span><div class="gmail-m_-6140233061309561320shrinkable-quote"><span class="gmail-"><div class='shrinkable-quote'><br>> Hi Johan,
<br>> 
<br>> my 2nd question was how to do something when the session is terminated.
<br>> 
<br>> I am wondering that when trying your suggestion with >>unregistered, it is
<br>> called not when the session expires but more early.
<br>> 
<br>> I found this:
<br>> <a href="http://forum.world.st/Seaside-sessions-not-being-either-unregistered-or-GCed-td4835659.html#a4835753" rel="nofollow" target="_blank" link="external">http://forum.world.st/Seaside-<wbr>sessions-not-being-either-<wbr>unregistered-or-GCed-<wbr>td4835659.html#a4835753</a><br>> 
<br>> I will look closer tomorrow, but perhaps you can confirm that it is not >>
<br>> unregistered
<br>> 
<br>> Or do I understand it wrong?
<br>> 
<br>> Regards
<br>> Sabine
<br>> 
</div></span><span class="gmail-">> 2017-01-20 20:22 GMT+01:00 Sabine Manaa <<a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>>:
<div class='shrinkable-quote'><br>> 
<br>> > Hi Johan, hi Petr,
<br>> >
<br>> > thank you! I did not succeed today with Johans code and thought that I
<br>> > will continue tomorrow.
<br>> > With the hint of Petr (and Nicolai), it works now.
<br>> >
<br>> > I do something like:
<br>> >
<br>> > theApplication := WAAdmin register: RKALayoutView asApplicationAt:
<br>> > theApplicationName.
<br>> > theApplication cache: theApplication createCache
<br>> >
<br>> > Regards,
<br>> > sabine
<br>> >
<br>> > 2017-01-20 17:00 GMT+01:00 Petr Fischer-2 [via Smalltalk] <[hidden email]
</div></span>> > <<a href="http:///user/SendEmail.jtp?type=node&node=4930149&i=0" rel="nofollow" target="_blank" link="external">http:///user/SendEmail.jtp?<wbr>type=node&node=4930149&i=0</a>>>:
<br>> >
<br>> >> <a href="http://stackoverflow.com/questions/41173162/how-to-configure" rel="nofollow" target="_blank" link="external">http://stackoverflow.com/<wbr>questions/41173162/how-to-<wbr>configure</a><br>> >> -seaside-3-2-session-timeouts-<wbr>age
<br><span class="gmail-">> >>
<div class='shrinkable-quote'><br>> >>
<br>> >> > Hi,
<br>> >> >
<br>> >> > how can I define the duration of my sessions?
<br>> >> >
<br>> >> > >>application cache expiryPolicy configuration at: #cacheTimeout put:
<br>> >> 120.
<br>> >> > does not work any longer (no implementor of #expiryPolicy)
<br>> >> >
<br>> >> > In the comment of  WASession there is the text "If the session has not
<br>> >> been
<br>> >> > used for #defaultTimeoutSeconds, it is garbage collected by the system.
<br>> >> "
<br>> >> > but there is no implementor of #defaultTimeoutSeconds.
<br>> >> >
<br>> >> > And 2nd question, is it possible to define a certain task to do from my
<br>> >> > session instance if the session is unregistered because of duration?
<br>> >> (e.g.
<br>> >> > write sth in a log file)
<br>> >> >
<br>> >> > (From the class comment also: WARegistry clearAllHandlers. does not
<br>> >> exist
<br>> >> > any more)
<br>> >> >
<br>> >> > Regards
<br>> >> > Sabine
<br>> >> >
<br>> >> >
<br>> >> >
<br>> >> >
<br>> >> >
<br>> >> >
<br>> >> > --
<br>> >> > View this message in context: <a href="http://forum.world.st/How-to-d" rel="nofollow" target="_blank" link="external">http://forum.world.st/How-to-d</a><br>> >> efine-the-duration-of-my-<wbr>sessions-tp4930014.html
<br>> >> > Sent from the Seaside General mailing list archive at Nabble.com.
<br>> >> > ______________________________<wbr>_________________
<br>> >> > seaside mailing list
</div></span>> >> > [hidden email] <<a href="http:///user/SendEmail.jtp?type=node&node=4930111&i=0" rel="nofollow" target="_blank" link="external">http:///user/SendEmail.jtp?<wbr>type=node&node=4930111&i=0</a>>
<br><span class="gmail-">> >> > <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> >> ______________________________<wbr>_________________
<br>> >> seaside mailing list
<br></span>> >> [hidden email] <<a href="http:///user/SendEmail.jtp?type=node&node=4930111&i=1" rel="nofollow" target="_blank" link="external">http:///user/SendEmail.jtp?<wbr>type=node&node=4930111&i=1</a>>
<br>> >> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> >>
<br>> >>
<br>> >> ------------------------------
<br><span class="gmail-">> >> If you reply to this email, your message will be added to the discussion
<br>> >> below:
<br>> >> <a href="http://forum.world.st/How-to-define-the-duration-of-my-sessi" rel="nofollow" target="_blank" link="external">http://forum.world.st/How-to-<wbr>define-the-duration-of-my-<wbr>sessi</a><br>> >> ons-tp4930014p4930111.html
<br>> >> To start a new topic under Seaside General, email [hidden email]
<br></span>> >> <<a href="http:///user/SendEmail.jtp?type=node&node=4930149&i=1" rel="nofollow" target="_blank" link="external">http:///user/SendEmail.jtp?<wbr>type=node&node=4930149&i=1</a>>
<br><span class="gmail-">> >> To unsubscribe from Seaside, click here.
<br>> >> NAML
<br></span>> >> <<a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" target="_blank" link="external">http://forum.world.st/<wbr>template/NamlServlet.jtp?<wbr>macro=macro_viewer&id=instant_<wbr>html%21nabble%3Aemail.naml&<wbr>base=nabble.naml.namespaces.<wbr>BasicNamespace-nabble.view.<wbr>web.template.NabbleNamespace-<wbr>nabble.view.web.template.<wbr>NodeNamespace&breadcrumbs=<wbr>notify_subscribers%21nabble%<wbr>3Aemail.naml-instant_emails%<wbr>21nabble%3Aemail.naml-send_<wbr>instant_email%21nabble%<wbr>3Aemail.naml</a>>
<br>> >>
<br>> >
<br>> >
<br>> > ------------------------------
<br><span class="gmail-">> > View this message in context: Re: How to define the duration of my
<br>> > sessions
<br></span>> > <<a href="http://forum.world.st/How-to-define-the-duration-of-my-sessions-tp4930014p4930149.html" rel="nofollow" target="_blank" link="external">http://forum.world.st/How-to-<wbr>define-the-duration-of-my-<wbr>sessions-tp4930014p4930149.<wbr>html</a>>
<br><span class="gmail-">> >
<br>> > Sent from the Seaside General mailing list archive
<br></span>> > <<a href="http://forum.world.st/Seaside-General-f86180.html" rel="nofollow" target="_blank" link="external">http://forum.world.st/<wbr>Seaside-General-f86180.html</a>> at Nabble.com.
<br><span class="gmail-">> >
<div class='shrinkable-quote'><br>> > ______________________________<wbr>_________________
<br>> > seaside mailing list
<br>> > <a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br>> > <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> >
<br>> >
</span></div><span class="gmail-"><br>> ______________________________<wbr>_________________
<br>> seaside mailing list
<br>> <a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=2" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a></div><br>______________________________<wbr>_________________
<br>seaside mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=3" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </span><div style="color:rgb(68,68,68);font-style:normal;font-variant-caps:normal;font-weight:normal;font-size:12px;line-height:normal;font-family:tahoma,geneva,helvetica,arial,sans-serif"><span class="gmail-">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span><a href="http://forum.world.st/How-to-define-the-duration-of-my-sessions-tp4930014p4930183.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/How-to-<wbr>define-the-duration-of-my-<wbr>sessions-tp4930014p4930183.<wbr>html</a>
        </div>
        <div style="color:rgb(102,102,102);font-style:normal;font-variant-caps:normal;font-weight:normal;font-size:11px;font-family:tahoma,geneva,helvetica,arial,sans-serif;margin-top:0.4em;line-height:1.5em">
                To start a new topic under Seaside General, email <a href="/user/SendEmail.jtp?type=node&node=4930188&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br><span class="gmail-">
                To unsubscribe from Seaside, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font-style:normal;font-variant-caps:normal;font-weight:normal;font-size:9px;line-height:normal;font-family:serif" target="_blank" link="external">NAML</a>
        </span></div></blockquote></div><br></div></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/How-to-define-the-duration-of-my-sessions-tp4930014p4930188.html">Re: How to define the duration of my sessions</a><br/>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html">Seaside General mailing list archive</a> at Nabble.com.<br/>