[Seaside] handling expired sessions
Hernán Morales Durand
hernan.morales at gmail.com
Thu Jun 17 07:04:32 UTC 2010
Hi Bob,
You may implement a redirect in your session class, something like
MySession>>expire
super expire.
self redirectTo: 'http://yoursiteaddress'
to redisplay an expired session.
Cheers,
Hernán
2010/6/16 Bob Arning <arning at charm.net>:
> I've got a problem with expired sessions. If I have a component like the one
> below and the session expires, then clicking on the red box does nothing. No
> error message, no redisplay, nothing that the user can see. What's a good
> way to let the user know what's going on here?
>
> TIA,
> Bob
>
> 'From PharoCore1.0rc1 of 19 October 2009 [Latest update: #10505] on 16 June
> 2010 at 1:52:05 pm'!
> WAComponent subclass: #BobTestComponent
> instanceVariableNames: ''
> classVariableNames: ''
> poolDictionaries: ''
> category: 'Bob001'!
>
> !BobTestComponent methodsFor: 'as yet unclassified' stamp: 'Bob 6/16/2010
> 13:51'!
> renderContentOn: html
>
> | div |
>
> (div := html div)
> style: 'height: 44px; width: 65px; background-color: red;';
> id: 'bob001';
> onClick: (html scriptaculous evaluator
> callback: [ :script |
> self replaceIt: script
> ];
> return: false);
> with: [html text: 'aaa']
> ! !
>
> !BobTestComponent methodsFor: 'as yet unclassified' stamp: 'Bob 6/16/2010
> 13:33'!
> replaceIt: script
>
> script element
> id: 'bob001';
> replace: [ :html |
> html div
> style: 'height: 44px; width: 65px;
> background-color: green;';
> id: 'bob001';
> with: [html text: 'two']
> ].
> ! !
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list