There's another way...
Create a custom page in your application, named "StaleSession"
Bryan Lewis wrote:
> The one difference I see between your code and what's been working for
> me in my custom Engine class is one more line:
>
> cycle.activate(page);
> renderResponse(cycle);
>
>
> [EMAIL PROTECTED] wrote:
>
>> Hi.
>>
>> When the session expires, how can I handle this and redirect to a customized
>> page saying "Your session has expired"
>>
>> In my BorderEngine class, I've tried this but maybe it's the wrong way, or
>> the wrong place to put it
>>
>> protected void handleStaleSessionException(IRequestCycle cycle,
>> StaleSessionException exception) throws IOException
>> {
>> cycle.activate("Expired"); // Trigger my customized
>> session-expired page.
>> }
>>
>>
>>
>> Thanks,
>> Greg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]