Hello,
i have a problem accessing the authentication context from flow.
i have the following function in my flowscript :

function saveCartDoc(contextName, path, cartDoc){
   try{
cocoon.log.debug("saving cartdoc to context " + contextName + " at path " + path); var contextMan = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE);
       var authContext = contextMan.getContext(contextName);
       if(authContext == null)
           throw "context " + contextName + " not found";
       var frag = cartDoc.createDocumentFragment();
       frag.appendChild(cartDoc.getDocumentElement());
authContext.setXML(path, frag); } finally {
       cocoon.releaseComponent(contextMan);
   }
}

This works fine with a self created context when the user isn't authentified, but when he is authentified, the "authentication" context is always null :(

I know the context is created because i can read it with the session transformer.
Should i call another contextManager ? If so, how do i do that ?

Thanks,

Marc

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to