Hi All, I've deployed a jsp in WebSphere 4.0. Each time I call the JSP, the value of an integer stored in sesion is increamented. This JSP works fine when I call it from a browser.
I've written a Java program which uses HTTPUrlConnection class to aceess the same JSP from the WebSphere server. For managing the sesion I'm doing following things - 1. From the response first time coming from WebSphere server I'm Extracting the cookie sent by the WebSphere using 'Set-Cookie' key of the header of the response. I'm extracting only the first name value pair from the value passed against 'Set-Cookie'. 2. For all further requests I'm sending the same cookie using setRequestProperty() method of HttpUrlConnection object. In this case I'm using "Cokkie" as the key. This program does not work properly. In every alternate call (say odd calls, 1-3-5-7 etc) the WebSphere server is able to identify the Cookie sent from the above Java program and increaments the value stored in session object. But for odd calls (i.e. 2-4-6-8 etc) the WebSphere server is not able to identify the Cookie sent from the above Java program and creates a new session object. Could anyone please provide a solution for this problem ? P.S. Note - The above java program works fine when the same JSP is deployed in a Tomcat web server. Regards, Sourav ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html