On 05/18/2011 07:18 PM, Paul Joseph wrote:
I think I should use this: http://wiki.apache.org/cocoon/ErrorHandling
Not sure, never used it.
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-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org
--
Andre H. Juffer | Phone: +358-8-553 1161
Biocenter Oulu and | Fax: +358-8-553-1141
Department of Biochemistry | Email: andre.juf...@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat | WWW: www.strubiocat.oulu.fi
NordProt | WWW: www.nordprot.org
Triacle Biocomputing | WWW: www.triacle-bc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org