[Seaside] setting 'expiry seconds' dynamically
Lukas.Hollenstein at snb.ch
Lukas.Hollenstein at snb.ch
Wed Sep 22 11:18:41 CEST 2004
seaside-bounces at lists.squeakfoundation.org wrote on 22.09.2004 10:52:14:
> Hi Lukas,
>
> > I'm new to Seaside and currently building a web-interface to a
> > existing database application. Therefore I want the user to be able to
> > set the 'timeout' or 'expiry seconds'. how can I do that dynamically?
>
> create a customized subclass of WASession and override the message
> #defaultTimeoutSeconds to return an i-var:
>
> MySession>>defaultTimeoutSeconds
> ^self timeoutSeconds
>
> Add an i-var 'timeoutSeconds' and write some accessor-methods:
>
> MySession>>timeoutSeconds
> ^timeoutSeconds
>
> MySession>>timeoutSeconds: anInteger
> timeoutSeconds := anInteger
>
> Now you are able to set the timeout on a per-session bases from any
> component:
>
> MyComponent>>foo
> ...
> self session timeoutSeconds: 1234.
> ...
>
> Hope this helps,
> Lukas
Hi Lukas
Yes this helps. Thank you.
Cheers,
Lukas Hollenstein
This message is for information purposes only. It may not be secure or
error-free. The Swiss National Bank does not accept legal responsibility for
any consequences resulting from e-mail use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20040922/5cc9d09a/attachment.htm
More information about the Seaside
mailing list