cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Joseph <pjos...@gmail.com>
Subject Re: best way to show login page when session expires? (Javascript/Java based Cocoon app.)
Date Wed, 18 May 2011 16:18:51 GMT
I think I should use this: http://wiki.apache.org/cocoon/ErrorHandling

On 5/18/2011 11:22 AM, Andre Juffer wrote:
> Paul,
>
> you could use Auth:
>
> http://cocoon.apache.org/2.2/blocks/auth/1.0/1236_1_1.html
>
> I have used this with 2.2 and does seem to work fine.
>
> One can test in flowscript whether or not a request is send while the 
> session was expired/closed. Testing whether or not the session expired 
> does not belong in the domain/business layer (IMHO). The test in 
> flowscript is done before the request is forwarded to the business 
> layer. If the session is expired, you simply redirect the request to a 
> login page, so it never reaches the business layer.
>
> best regards,
> Andre
>
> On 05/18/2011 05:45 PM, Paul Joseph wrote:
>> Hi there,
>>
>> I have a Cocoon app that has numerous pages...I use Javascript
>> (flowscript) to do the display and Java to do the "business logic."
>>
>> In the Java layer, I have code to detect when the session expires and
>> this works nicely and so I am able to maintain a count of currently
>> logged in users.
>>
>> Here is my request: A customer asked that when their session expires,
>> that they be shown the login page automatically.
>>
>> Now I know when the session expires, but how do I show the Login page
>> from within Java code? They could be anywhere in the app so I presume I
>> should directly have the Java code somehow display the Login page?
>>
>> Pointers much appreciated.
>>
>> Paul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message