Re: authentication block problem
Hi, yes with the same instance of mozilla I expected that but not with different instances! anyway, thanks for your answers! PaulaSimone Gianni [EMAIL PROTECTED] escribió: Hi Paula, AFAIK in IE it works like this : - If you start another browser instance (by clicking on start-Internet explorer) then you don't take the cookies from another running instance. - If you open another window of the browser (by typing CTRL+N, or file-new-window, or clicking on a link that opens another window) then you have all the cookies of the "main" window. While in Firefox it does not matter if you launch a new instance or open another window or tab, cookies are always shared (don't know if there is a configuration option).So, you should try to open a new window in internet explorer by typing CTRL+N, in this case it should behave same as firefox.To test concurrency on a web application is always better to use two different computers, since also IE in rare and strange cases (i can't remember, something to do with HTTPS, P3P) and in some versions can randomly share session cookies.SimoneJason Johnston wrote: Is it the same instance of Firefox? If so then this is expected behavior;user sessions are typically tracked by a JSESSION-ID cookie, and Firefoxuses the same cookies for each instance of the browser (each system useris allowed one instance at a time I believe). IE allows a single systemuser to launch multiple instances of the browser, each one using its ownset of cookies.If this is what you're seeing then it's not a problem with the authframework or Cocoon in general; this is standard behavior for webapplications that track user sessions via cookies.I found another strange behaviour of the auth. framework: it seems that Ican have several users logged in if I use Internet Explorer (v. 6.0.2)but with Mozilla firefox (v1.0.7) the behaviour is as explained below orget always logged in as the first user (using the action auth-loggedIn) Any ideas what the problem is and how to solve this? Thanks, PaulaPaula Estrella [EMAIL PROTECTED] escribió:Hi, I'm using (ortrying to use) the authentication block included in cocoon and it worksfine if there's only 1 user logged in, but when I try to log in twicewith different user names (i.e. I want many users logged in at the sametime) I get the error "org.apache.cocoon.ProcessingException: User isalready authenticated using handler: portal-handler". Now, my question is: how can I allow several users logged in at the sametime using this auth. block? Thanks in advance, Paula Here's the sitemap I'm using (it's basically a copypaste from the blockexample) map:component-configurationsauthentication-manager handlers handler name="portal-handler"redirect-to uri="cocoon:/login"/ authentication uri="cocoon:raw:/authenticate"//handler /handlers/authentication-manager /map:component-configurations map:match pattern="login" map:generate src=""/ map:transform src=""/ map:transform type="encodeURL"/ map:serialize//map:match map:match pattern="do-login"map:act type="auth-login"map:parameter name="handler" value="portal-handler"/ map:parameter name="parameter_name"value="{request-param:username}"/ map:parameter name="parameter_password"value="{request-param:password}"/map:redirect-to uri="portal"//map:act map:redirect-to uri="error"//map:match-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- Simone Gianni __Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
authentication block problem
Hi, I'm using (or trying to use) the authentication block included in cocoon and it works fine if there's only 1 user logged in, but when I try to log in twice with different user names (i.e. I want many users logged in at the same time) I get the error "org.apache.cocoon.ProcessingException: User is already authenticated using handler: portal-handler".Now, my question is: how can I allow several users logged in at the same time using this auth. block?Thanks in advance, PaulaHere's the sitemap I'm using (it's basically a copypaste from the block example)map:component-configurations authentication-manager handlers handler name="portal-handler" redirect-to uri="cocoon:/login"/authentication uri="cocoon:raw:/authenticate"/ /handler /handlers /authentication-manager /map:component-configurationsmap:match pattern="login" map:generate src=""/ map:transform src=""/ map:transform type="encodeURL"/ map:serialize/ /map:matchmap:match pattern="do-login" map:act type="auth-login" map:parameter name="handler" value="portal-handler"/map:parameter name="parameter_name" value="{request-param:username}"/map:parameter name="parameter_password" value="{request-param:password}"/ map:redirect-to uri="portal"//map:act map:redirect-to uri="error"/ /map:match__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: authentication block problem
I found another strange behaviour of the auth. framework: it seems that I can have several users logged in if I use Internet Explorer (v. 6.0.2) but with Mozilla firefox (v1.0.7) the behaviour is as explained below or get always logged in as the first user (using the action auth-loggedIn)Any ideas what the problem is and how to solve this? Thanks, PaulaPaula Estrella [EMAIL PROTECTED] escribió:Hi, I'm using (or trying to use) the authentication block included in cocoon and it works fine if there's only 1 user logged in, but when I try to log in twice with different user names (i.e. I want many users logged in at the same time) I get the error "org.apache.cocoon.ProcessingException: User is already authenticated using handler: portal-handler".Now, my question is: how can I allow several users logged in at the same time using this auth. block?Thanks in advance, PaulaHere's the sitemap I'm using (it's basically a copypaste from the block example)map:component-configurations authentication-manager handlers handler name="portal-handler" redirect-to uri="cocoon:/login"/authentication uri="cocoon:raw:/authenticate"/ /handler /handlers /authentication-manager /map:component-configurationsmap:match pattern="login" map:generate src=""/ map:transform src=""/ map:transform type="encodeURL"/ map:serialize/ /map:matchmap:match pattern="do-login" map:act type="auth-login" map:parameter name="handler" value="portal-handler"/map:parameter name="parameter_name" value="{request-param:username}"/ map:parameter name="parameter_password" value="{request-param:password}"/ map:redirect-to uri="portal"//map:act map:redirect-to uri="error"/ /map:match__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: source writing transformer and file refreshing
Thanks again, that solved the problem! (and fyi cocoon 2.1.8 and windows xp sp2) best, PaulaAntonio Gallardo [EMAIL PROTECTED] escribió: Hi Paula, Would you post a simple demo of your problem? Before that, please try to turn off the cache for this pipeline. BTW, cocoon version, OS?Best Regards,Antonio Gallardo.Paula Estrella escribió: Hi all, I'm experiencing some problems when using the above mentioned transformer; I read a file to append a user name, but after adding it, it seems cocoon doesn't "synch" or refresh the file, so I can add many times the same user name and I want to have unique user names; any ideas how to solve this? Let me know if you need to see the code I have, thanks in advance, Paula __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
source writing transformer and file refreshing
Hi all, I'm experiencing some problems when using the above mentioned transformer; I read a file to append a user name, but after adding it, it seems cocoon doesn't "synch" or refresh the file, so I can add many times the same user name and I want to have unique user names; any ideas how to solve this? Let me know if you need to see the code I have, thanks in advance, Paula__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Re: how to save results to disk?
Thank you all, for your expertise! I followed your advice and could do what I wanted. PaulaNico Verwer [EMAIL PROTECTED] escribió: Paula Estrella wrote: Hi, I'm developing a small application with cocoon 2.1.8 under windows and I'd like to know if it's possible to store (server side) a dinamically generated xml document, i.e. I genrate a document result.xml with some input from users and I want to perform some action to store this document in the server as -result.xml Any ideas how I could do this?Have a look at the SourceWritingTransformer (http://cocoon.apache.org/2.1/userdocs/sourcewriting-transformer.html). This will do what you want.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
how to save results to disk?
Hi, I'm developing a small application with cocoon 2.1.8 under windows and I'd like to know if it's possible to store (server side) a dinamically generated xml document, i.e. I genrate a document result.xml with some input from users and I want to perform some action to store this document in the server as user-result.xml Any ideas how I could do this? Thank you in advancePaula__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar