<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ciao,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>sorry for the replication, i hope to be more clear and concise.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I&nbsp;do some test to manage the request relative to one expired session.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>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><span class="Apple-tab-span" style="white-space:pre">        </span>The solution to keep alive the session with:</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">        </span>(html scriptaculous periodical</div><div>&nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">                        </span>&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><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I create a&nbsp;WAApplication &nbsp;subclass for &nbsp;define the&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>handleExpired: aRequestContext &nbsp; &nbsp; &nbsp;method.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Now it's set :</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>handleExpired: aRequestContext<span class="Apple-tab-span" style="white-space:pre">
                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>" redirect all expire request to a specific url"</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><span class="Apple-tab-span" style="white-space: pre; ">aRequestContext redirectTo: </span>anUrl<span class="Apple-tab-span" style="white-space:pre">
        
        </span></div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>This&nbsp;intercept all activity relative to one expired session &nbsp;and redirect to a specific anUrl.</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 &nbsp; definition.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>For example;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>.......&nbsp;<span class="Apple-tab-span" style="white-space: pre; "> onChange: (                </span></div><span class="Apple-tab-span" style="white-space: pre; ">                        html updater
                                        id: </span>'elementToUpdate'<span class="Apple-tab-span" style="white-space: pre; ">;
                                        triggerFormElement: id;
                                        callback: [:r | rfrMasterHtml updateView: r]        
                                )].</span><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>because when the session is expired and &nbsp;the user trigger the onChange,&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>the application<span class="Apple-tab-span" style="white-space:pre">        </span> handlerExpired:<span class="Apple-tab-span" style="white-space:pre">        </span> intercept the request, but&nbsp;the<span class="Apple-tab-span" style="white-space:pre">                </span>&nbsp;<span class="Apple-tab-span" style="white-space: pre; ">aRequestContext</span>&nbsp;redirectTo: url &nbsp;</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; ">        </span>don't update the html page but is rendering in the html 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 updater &nbsp;statement &nbsp;&nbsp;( 'elementToUpdate' in this case ).</div><div><br></div><div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Question for action relative to one expired session :</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>A) for onChange trigger &nbsp;i can rendering the <span class="Apple-tab-span" style="white-space:pre">                </span><span class="Apple-tab-span" style="white-space: pre; ">aRequestContext redirectTo: </span>anUrl &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>at &nbsp;the top of the page</div><div><br></div></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>B) if i lose completely the internet connection i can display a message to the user.</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>Thanks for any consideration,</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>Dario</div></div></body></html>