i.e. in your flowscript/login action retrieve the parameter named "resource" and redirect to this after successful login; note that the URI is the complete URI, as retrieved by request,getRequestURI(): it is not relative to the sitemap or the Cocoon servlet.
Ellis.
On 26 Jan 2005, at 07:50, Lionel Crine wrote:
In fact, my real question is :
How do I redirect to the page I requested before logging in.
The authentication fw always redirect to the first page of the protected area.
Chris Bentley wrote:
Hi Lionel,
yes there is a samplein the blocks area, here is a typical url to the samples in your own cocoon 2.1.6 http://localhost:8888/samples/blocks/authentication-fw/flow/login This is authentication with flow
Lionel Crine schrieb:
Hello,
I want to make a page which test if the user is logged or not(easy).
If not, I redirect him to the login page (easy) but once the user is logged in, I want to redirect him to the previous page he requested.
Is there some samples in flowscript to do that ?
There is an Authentication Framework in Cocoon. http://cocoon.apache.org/2.1/developing/webapps/authentication.html
HTH Christoph
www.boogaloos.de
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Lionel CRINE
Ing�nieur Syst�mes documentaires
Soci�t� : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
<crine.vcf>------------------------------------------------------------ ---------
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]
