[Seaside] Re: Problems with expire in Seaside
Andreas Nilsson
wahboh at mac.com
Thu Sep 2 00:22:28 CEST 2004
Is there any way to override the expire-screen / behaviour in the
current framework?
That's the only advantage i can see with the Forwarder solution.
/Adde
On 2004-09-01, at 23.35, Avi Bryant wrote:
>
> On Aug 27, 2004, at 4:28 PM, Avi Bryant wrote:
>
>>> I'm calling my Seaside application with a query parameter specifying
>>> which company database it should access
>>> (http://localhost:9090/seaside/app?site=1111111111).
>>> The problem is that when a page expires, Seaside redirects to
>>> 'http://localhost:9090/seaside/app' which makes it impossible to
>>> login again.
>>> Is there any way to alter the WAApplication's baseUrl from the code
>>> to include the parameter? Or any way to override the default
>>> expire-behaviour?
>
> So I don't know why this didn't occur to me earlier, but the simplest
> way to solve this problem is just to make sure that "site=1111111"
> stays in the URL throughout the session. WARegistry is already set up
> to preserve any such parameters when it redirects you to a new
> session. So, on some component or decoration that's visible
> throughout your application (and create one if there isn't one
> already), just implement this method:
>
> updateUrl: aUrl
> aUrl addParameter: 'site' value: '111111111'
>
> Given that solution, what do people think about the earlier proposed
> forwarder/finalization mechanism? Still useful, or just bloat?
>
> Avi
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
More information about the Seaside
mailing list