<div dir="ltr"><div>Hi Petr,</div><div><br></div><div>concerning the redirect to the login page:</div><div><br></div><div>I do in my main Layout View Class:</div><div><br></div><div>renderSessionExpiryLoadScriptO<wbr>n: html</div><div>„this is called in renderContentOn:“</div><div><span class="m_-7598565731779598778gmail-Apple-tab-span" style="white-space:pre-wrap">    </span>html document</div><div><span class="m_-7598565731779598778gmail-Apple-tab-span" style="white-space:pre-wrap">               </span>addLoadScript:</div><div><span class="m_-7598565731779598778gmail-Apple-tab-span" style="white-space:pre-wrap">                      </span>(html jQuery document</div><div><span class="m_-7598565731779598778gmail-Apple-tab-span" style="white-space:pre-wrap">                               </span>onAjaxStart: (html jQuery class: self cssClassSpinner) show;</div><div><span class="m_-7598565731779598778gmail-Apple-tab-span" style="white-space:pre-wrap">                                </span>onAjaxStop: (html jQuery class: self cssClassSpinner) hide;</div><div><span class="m_-7598565731779598778gmail-Apple-tab-span" style="white-space:pre-wrap">                         </span>onAjaxError: (self ajaxErrorHandler asFunction: #('event' 'jqxhr' 'settings' 'exception')))</div><div><br></div><div>ajaxErrorHandler </div><div><span class="m_-7598565731779598778gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>^ ' if (jqxhr.status == 403) { </div><div>            alert(„German text which means you are logged out. Aus Sicherheitsgründen wurde Ihre Sitzung beendet. Bitte melden Sie sich neu an."); </div><div>            window.location.href = settings.url.split("?")[0].<wbr>replace("help",""); </div><div>        } else { </div><div>if (jqxhr.status == 200) { } else {  </div><div>alert(„German Text which means sorry, error occured - continuing..Entschuldigung, es ist ein Fehler aufgetreten. Bitte melden Sie sich neu an und versuchen es erneut oder geben Sie uns eine Info über den folgenden Fehler: " + exception +"jqxhr.status:"+jqxhr.status)<wbr>;   </div><div>        }}'</div><div><br></div><div>I have this solution from the forum here. Yes, more/actual documentation would help a lot…</div><div><br></div><div>Regards</div><div>Sabine</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-21 16:30 GMT+01:00 Petr Fischer-2 [via Smalltalk] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4930243&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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">

        > Hi Petr,
<br>> 
<br>> I have already a solution for redirect to login page  and show message
<br>> after session was timed out in the browser.
<br><br></span><span class="">How are you doing this in Seaside 3.2, please? (Again, there is a documentation on the net + blog posts, but everything is obsolete).
<br></span><div class="m_5763714698655513671shrinkable-quote"><span class=""><div class='shrinkable-quote'><br>> I want to log in a file on the server each login and logoff of the users.
<br>> Login no problem, logoff with logoff button either.
<br>> But hose sessions which are not terminated by the user (not clicking on
<br>> "logout") would not be logged so far.
<br>> 
<br>> For this reason I wanted to log them when their session was timed out (also
<br>> if the user does not come back and finds its session dead, e.g. if the user
<br>> simply closes the browser or shutdown the system).
<br>> 
<br>> As far as I understand now after reading this post
<br>>  <a href="http://forum.world.st/Seaside-sessions-not-being-either-" rel="nofollow" link="external" target="_blank">http://forum.world.st/<wbr>Seaside-sessions-not-being-<wbr>either-</a><br>> unregistered-or-GCed-<wbr>td4835659.html#a4835753
<br>> 
<br>> this is not done immediately after my defined timeout e.g.
<br>> anApplication configuration at: #maximumRelativeAge put: 3600.
<br>> 
<br>> and also not in >>unregistered
<br>> 
<br>> but only when the garbage collection finds this session or so....
<br>> 
<br>> So I don't have a solution for the "log-when-session-ended-<wbr>without-logoff"
<br>> yet.
<br>> 
<br>> Regards
<br>> Sabine
<br>> 
<br>> 
<br>> 
<br>> 2017-01-21 12:57 GMT+01:00 Petr Fischer-2 [via Smalltalk] <
</div></span>> <a href="http:///user/SendEmail.jtp?type=node&node=4930203&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>>:
<br><span class="">> 
<div class='shrinkable-quote'><br>> > What do you want to do when session timeouted? Something on the server, or
<br>> > on the web client (eg. show login page with proper message immediately
<br>> > after timeout)?
<br>> >
<br>> > pf
<br>> >
<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
<br>> > 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-" rel="nofollow" link="external" target="_blank">http://forum.world.st/Seaside-<wbr>sessions-not-being-either-</a><br>> > unregistered-or-GCed-<wbr>td4835659.html#a4835753
<br>> > >
<br>> > > I will look closer tomorrow, but perhaps you can confirm that it is not
<br>> > >>
<br>> > > unregistered
<br>> > >
<br>> > > Or do I understand it wrong?
<br>> > >
<br>> > > Regards
<br>> > > Sabine
<br>> > >
<br>> > > 2017-01-20 20:22 GMT+01:00 Sabine Manaa <[hidden email]
</div></span>> > <<a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=0" rel="nofollow" link="external" target="_blank">http:///user/SendEmail.jtp?<wbr>type=node&node=4930183&i=0</a>>>:
<br><div><div class="h5">> > >
<div class='shrinkable-quote'><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
<br>> > email]
<br>> > > > <<a href="http:///user/SendEmail.jtp?type=node&node=4930149&i=0" rel="nofollow" link="external" target="_blank">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" link="external" target="_blank">http://stackoverflow.com/<wbr>questions/41173162/how-to-<wbr>configure</a><br>> > > >> -seaside-3-2-session-timeouts-<wbr>age
<br>> > > >>
<br>> > > >>
<br>> > > >> > Hi,
<br>> > > >> >
<br>> > > >> > how can I define the duration of my sessions?
<br>> > > >> >
<br>> > > >> > >>application cache expiryPolicy configuration at: #cacheTimeout
<br>> > 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
<br>> > not
<br>> > > >> been
<br>> > > >> > used for #defaultTimeoutSeconds, it is garbage collected by the
<br>> > 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
<br>> > from my
<br>> > > >> > session instance if the session is unregistered because of
<br>> > 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" link="external" target="_blank">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
<br>> > > >> > [hidden email] <<a href="http:///user/SendEmail.jtp" rel="nofollow" link="external" target="_blank">http:///user/SendEmail.jtp</a>?
<br>> > type=node&node=4930111&i=0>
<br>> > > >> > <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> > > >> ______________________________<wbr>_________________
<br>> > > >> seaside mailing list
<br>> > > >> [hidden email] <<a href="http:///user/SendEmail.jtp?type=node&node=4930111&i=1" rel="nofollow" link="external" target="_blank">http:///user/SendEmail.jtp?<wbr>type=node&node=4930111&i=1</a>>
<br>> >
<br>> > > >> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> > > >>
<br>> > > >>
<br>> > > >> ------------------------------
<br>> > > >> If you reply to this email, your message will be added to the
<br>> > discussion
<br>> > > >> below:
<br>> > > >> <a href="http://forum.world.st/How-to-define-the-duration-of-my-sessi" rel="nofollow" link="external" target="_blank">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>> > > >> <<a href="http:///user/SendEmail.jtp?type=node&node=4930149&i=1" rel="nofollow" link="external" target="_blank">http:///user/SendEmail.jtp?<wbr>type=node&node=4930149&i=1</a>>
<br>> > > >> To unsubscribe from Seaside, click here.
<br>> > > >> NAML
</div></div></div><span class="">> > > >> <<a href="http://forum.world.st/template/NamlServlet.jtp" rel="nofollow" link="external" target="_blank">http://forum.world.st/<wbr>template/NamlServlet.jtp</a>?
<br>> > macro=macro_viewer&id=instant_<wbr>html%21nabble%3Aemail.naml&
<br>> > base=nabble.naml.namespaces.<wbr>BasicNamespace-nabble.view.
<br>> > web.template.NabbleNamespace-<wbr>nabble.view.web.template.
<br>> > NodeNamespace&breadcrumbs=<wbr>notify_subscribers%21nabble%
<br>> > 3Aemail.naml-instant_emails%<wbr>21nabble%3Aemail.naml-send_
<br>> > instant_email%21nabble%<wbr>3Aemail.naml>
<br>> > > >>
<br>> > > >
<br>> > > >
<br></span><span class="">> > > > ------------------------------
<div class='shrinkable-quote'><br>> > > > View this message in context: Re: How to define the duration of my
<br>> > > > sessions
<br>> > > > <<a href="http://forum.world.st/How-to-define-the-duration-of-my-" rel="nofollow" link="external" target="_blank">http://forum.world.st/How-to-<wbr>define-the-duration-of-my-</a><br>> > sessions-tp4930014p4930149.<wbr>html>
<br>> > > >
<br>> > > > Sent from the Seaside General mailing list archive
<br>> > > > <<a href="http://forum.world.st/Seaside-General-f86180.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/<wbr>Seaside-General-f86180.html</a>> at Nabble.com.
<br>> > > >
<br>> > > > ______________________________<wbr>_________________
<br>> > > > seaside mailing list
</div></span>> > > > [hidden email] <<a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=1" rel="nofollow" link="external" target="_blank">http:///user/SendEmail.jtp?<wbr>type=node&node=4930183&i=1</a>>
<br><span class="">> > > > <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> > > >
<br>> > > >
<br>> >
<br>> > > ______________________________<wbr>_________________
<br>> > > seaside mailing list
<br></span>> > > [hidden email] <<a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=2" rel="nofollow" link="external" target="_blank">http:///user/SendEmail.jtp?<wbr>type=node&node=4930183&i=2</a>>
<br><span class="">> > > <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> >
<br>> > ______________________________<wbr>_________________
<br>> > seaside mailing list
<br></span>> > [hidden email] <<a href="http:///user/SendEmail.jtp?type=node&node=4930183&i=3" rel="nofollow" link="external" target="_blank">http:///user/SendEmail.jtp?<wbr>type=node&node=4930183&i=3</a>>
<br><span class="">> > <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>> >
<br>> >
<br>> > ------------------------------
<br>> > 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-" rel="nofollow" link="external" target="_blank">http://forum.world.st/How-to-<wbr>define-the-duration-of-my-</a><br></span>> > sessions-tp4930014p4930183.<wbr>html
<br><span class="">> > To start a new topic under Seaside General, email
<br>> > <a href="http:///user/SendEmail.jtp?type=node&node=4930203&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br></span><span class="">> > To unsubscribe from Seaside, click here
<div class='shrinkable-quote'><br>> > <</span><a rel="nofollow" link="external" target="_top">
<br>> > .
<br>> > NAML
<br>> > <</a><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" link="external" target="_blank">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>> 
<br>> --
<br>> View this message in context: <a href="http://forum.world.st/How-to-define-the-duration-of-my-sessions-tp4930014p4930188.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/How-to-<wbr>define-the-duration-of-my-<wbr>sessions-tp4930014p4930188.<wbr>html</a><span class=""><br>> Sent from the Seaside General mailing list archive at Nabble.com.
</span></div><span class=""><br>> ______________________________<wbr>_________________
<br>> seaside mailing list
<br>> <a href="http:///user/SendEmail.jtp?type=node&node=4930203&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
</div></span><span class="">> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br><br>______________________________<wbr>_________________
<br>seaside mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4930203&i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">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:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span class="">
                <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-tp4930014p4930203.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/How-to-<wbr>define-the-duration-of-my-<wbr>sessions-tp4930014p4930203.<wbr>html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Seaside General, email ml-node+s1294792n86180h75@n4.<wbr><a href="http://nabble.com" target="_top" rel="nofollow" link="external">nabble.com</a> <br>
                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:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></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-tp4930014p4930243.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/>