<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ciao,</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Ciao,<br><br><blockquote type="cite">Udo,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">As far as I know, you would need to create a specific subclass of WAApplication and override #handleExpired: to do what you want.<br></blockquote><blockquote type="cite">Then use that specific subclass to register your main component as an application (the standard WAAdmin&gt;&gt;register:asApplicationAt: uses WAApplication)<br></blockquote><br>I change the WARegistry <span class="Apple-tab-span" style="white-space:pre">        </span>#handleExpired: &nbsp;&nbsp;&nbsp;for do some test about the management of expired Session.<br><br>Now it redirect to a specific url or to a WA entry.<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>For example:<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>handleExpired: &nbsp;aRequestContext<br><br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>aRequestContext redirectTo: '<a href="http://www.localtest.com'">http://www.localtest.com'</a>.<br><br><br>The relative WAComponent &nbsp;subclass ( register with the speciific<span class="Apple-tab-span" style="white-space:pre">        </span> WAAdmin&gt;&gt;register:asApplicationAt )<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>define and display some component with Scriptaculous AJAX request &nbsp;and some anchor .<br><br><br><span class="Apple-tab-span" style="white-space:pre">        </span>Now after the session expired all the request are intercepted by the <span class="Apple-tab-span" style="white-space:pre">        </span>handleExpired: &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> method.<br><br><span class="Apple-tab-span" style="white-space:pre">        </span><br><span class="Apple-tab-span" style="white-space:pre">        </span>The anchor request work fine and the page is update.<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>The problem is relative to the AJAX request because the <span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>redirectTo: &nbsp;&nbsp;&nbsp;&nbsp;don't &nbsp;do anything &nbsp;and the page isn't update.<br></div></blockquote><div><br></div><div>OK, i found the problem.&nbsp;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>It's relative to the Ajax request<span class="Apple-tab-span" style="white-space:pre">        </span>because it's based on html evaluator.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I define it with <span class="Apple-tab-span" style="white-space:pre">        </span>html updater &nbsp; &nbsp;and the page is update.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>.......&nbsp;<span class="Apple-tab-span" style="white-space:pre"> onChange: (                
                        html updater
                                        id: </span>'elementToUpdate'<span class="Apple-tab-span" style="white-space:pre">;
                                        triggerFormElement: id;
                                        callback: [:r | rfrMasterHtml updateView: r]        
                                )].</span></div><div><br></div><div><br></div><div>Now, &nbsp;when the session is expired and the user click on the link with html updater definition,&nbsp;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>the redirectTo: &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> is display in the DIV with the <span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;id <span class="Apple-tab-span" style="white-space:pre">                </span>declared by html updater &nbsp;( 'elementToUpdate' in this case )</div><div><br></div><div><br></div>All this my work is relative to manage the expired session.</div><div><br></div><div>My goal is to redirect to a specific &nbsp;url &nbsp; &nbsp;when the user click any component relative to one expired session.</div><div><br></div><div>The solution to keep alive the session with:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;(html scriptaculous periodical</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;interval: 30 seconds;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>callback:[:x| self transcript] )).</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>don't complete solve the problem because for some situation this periodical update can&nbsp;<span class="Apple-style-span" style="color: rgb(51, 51, 51); "><span class="hps">may</span></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); ">&nbsp;</span><span class="Apple-style-span" style="color: rgb(51, 51, 51); "><span class="hps">be lost</span></span></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>and the user can click on component relative to &nbsp;one expired session in some cases.</div><div><br></div><div>Manage the&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>WAApplication &nbsp;subclass<span class="Apple-tab-span" style="white-space:pre">                </span>handleExpired: aRequestContext &nbsp; &nbsp; &nbsp;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>intercept all activity relative to one expired session,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>the problem is relative to component with &nbsp;ajax html updater<span class="Apple-tab-span" style="white-space:pre">        </span> because the redirectTo: url &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>don't update the page but is rendering in the DIV&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>relative to html update &nbsp;statement.</div><div><br></div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>How i can redirect &nbsp;and display the page in all cases ?</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Thank,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Dario</div><div><br><blockquote type="cite"><div><br><span class="Apple-tab-span" style="white-space:pre">        </span><br><br>Some consideration about it ?<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>Thank,<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>Dario<br><br><br><span class="Apple-tab-span" style="white-space:pre">        </span><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Overriding #initialRequest: on your initial component might be of help to know if the request was for an expired session. But you probably need to pass some info in the request in the #handleExpired: method. <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Now, this is all theory, I have no experience doing that myself ;-)<br></blockquote><blockquote type="cite">Let us know if you succeed.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Johan<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On 02 Nov 2010, at 21:41, Udo Schneider wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">All,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">if this is just an RTFM question I'm happy to read on my own ... however I'm searching for a solution to handle expired sessions in Seaside 3.0. My goal is to either display a specific component when a request for an expired session is recieved or to be able to find out if a request was for an expired session in my initial component.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Any pointers?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">CU,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Udo<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">seaside mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">seaside mailing list<br></blockquote><blockquote type="cite"><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote><br>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div></blockquote></div><br></body></html>