I need to do this because when arriving on a web application a PreProcessor redirect to an authentication web application. But when the authentication is finished we have to come back to original web application with all the paramater given to this web application. This process works with username-password authentication. But now we have to use an apache server and so a redirection is needed. I succeed in transmitting context by using url rewriting but I'm not allow to do that for the parameter given to the original web application. Normally those ones are saved in the session.
I must precise that i'm new and that i didn't write those web application. I juste have to make an modification so we can integrate electronical identy card authentication. Claude Libois [EMAIL PROTECTED] Technical associate - Unisys ----- Original Message ----- From: "Vadim Petrenko" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 10:16 AM Subject: RE: Transmission of a session using jsessionID > I agree, that sharing a session between 2 separate webapps is an example of > a horrible design. One is not supposed to manipulate with jsessionid > directly. > > However, if you don't need to share _entire_ session, but only several > attributes, then you can use database to share them or take advantage of > JNDI. > > If you still want to share entire session, can you explain why you want to > do that? Maybe there are different approaches? > > Vadim. > > -----Original Message----- > From: Claude Libois [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 09, 2004 9:59 AM > To: Struts Users Mailing List > Subject: Re: Transmission of a session using jsessionID > > A precision that make a big difference. > The two actions are not in the same web application. > I saw on a forum that sharing session between two web app is "bad design" > and so is not allow with jsessionID. > Is it true? If so, is there any other way to share session between two > different web application. I really need to do this... > Claude Libois > [EMAIL PROTECTED] > Technical associate - Unisys > > ----- Original Message ----- > From: "Claude Libois" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, December 09, 2004 9:32 AM > Subject: Transmission of a session using jsessionID > > > > Hi all, > > I try to keep my session after a redirect in struts but it doesn't work. > So > > I made a test application with an action sendSession.do and an other > action > > receiveSession.do. > > Here are the code of those two simple action: > > ************ > > sendSession.do > > ************ > > public class sendSession extends Action { > > public ActionForward execute(ActionMapping actionMapping, > > ActionForm actionForm, > > HttpServletRequest servletRequest, > > HttpServletResponse servletResponse) { > > System.out.println("***************** sessionId before redirect" > > +servletRequest.getSession().getId()); > > servletRequest.getSession().setAttribute("test","test"); > > ActionForward af=new ActionForward( > > > "http://12.2.33.13:40000/Consumer/receiveSession.do;jsessionid=" > > + > > servletRequest.getSession().getId(),true); > > return af; > > } > > } > > ************* > > receiveSession.do > > ************* > > public class ReceiveSession extends Action { > > public ActionForward execute(ActionMapping actionMapping, > > ActionForm actionForm, > > HttpServletRequest servletRequest, > > HttpServletResponse servletResponse) { > > System.out.println("***************** sessionId after redirect" > > +servletRequest.getSession().getId()); > > System.out.println("test > > "+servletRequest.getSession().getAttribute("test")); > > return null; > > } > > } > > > > What's wrong with it? the attribute "test" is null in receiveSession.do > > Is there anything else to do for session sharing between two web app?? > > > > Thanks in advance > > > > Claude Libois > > [EMAIL PROTECTED] > > Technical associate - Unisys > > > > > > --------------------------------------------------------------------- > > 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] > > > > --------------------------------------------------------------------- > 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]