cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agssa.net>
Subject RE: Problem with losing session context 'authentication' - looking fo r workaround or bugfix
Date Sun, 16 May 2004 07:33:46 GMT
Hi Helma!

I don't forgot to this task! As promised, I found the time and started to
checking the code :-D

I have the posted code in my computer. I just left the code that was
interesting to me:

[2] login.js
> cocoon.load("resource://org/apache/cocoon/webapps/authentication/flow/javasc
> ript/auth.js");
>
> function isLoggedIn() {
>   var handler = cocoon.parameters["handler"];
>   var resource = cocoon.parameters["resource"];
>
>   // resource contains the URL where the request came from, so you can
> redirect to there
>
>   if (auth_isAuthenticated(handler, resource)) {   <---- neither
> redirection
> work

the auth_isAuthenticated() allow just 1 parameter. The correct code must be:

auth_isAuthenticated(handler).

See the source code:
http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/flow/javascript/auth.js?content-type=text%2Fplain&rev=1.9

Please try to change it and let me know if this solve the problem or not.
We can try to solve the problem fixing 1 thing at a time, OK? :)

Best Regards,

Antonio Gallardo


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


Mime
View raw message