<br>
<br><font size=2><tt>seaside-bounces@lists.squeakfoundation.org wrote on
22.09.2004 10:52:14:<br>
<br>
> Hi Lukas,<br>
> <br>
> > I'm new to Seaside and currently building a web-interface to
a <br>
> > existing database application. Therefore I want the user to be
able to <br>
> > set the 'timeout' or 'expiry seconds'. how can I do that dynamically?<br>
> <br>
> create a customized subclass of WASession and override the message
<br>
> #defaultTimeoutSeconds to return an i-var:<br>
> <br>
> MySession>>defaultTimeoutSeconds<br>
> ^self timeoutSeconds<br>
> <br>
> Add an i-var 'timeoutSeconds' and write some accessor-methods:<br>
> <br>
> MySession>>timeoutSeconds<br>
> ^timeoutSeconds<br>
> <br>
> MySession>>timeoutSeconds: anInteger<br>
> timeoutSeconds := anInteger<br>
> <br>
> Now you are able to set the timeout on a per-session bases from any
<br>
> component:<br>
> <br>
> MyComponent>>foo<br>
> ...<br>
> self session timeoutSeconds: 1234.<br>
> ...<br>
> <br>
> Hope this helps,<br>
> Lukas<br>
<br>
</tt></font>
<br><font size=2><tt>Hi Lukas</tt></font>
<br>
<br><font size=2><tt>Yes this helps. Thank you.</tt></font>
<br>
<br><font size=2><tt>Cheers,</tt></font>
<br><font size=2><tt>Lukas Hollenstein</tt></font>
<br>
<br>
<table><tr><td bgcolor=#ffffff><font color=#000000>This message is for information purposes only. It may not be secure or<br>error-free. The Swiss National Bank does not accept legal responsibility for<br>any consequences resulting from e-mail use.<br></font></td></tr></table>