Byju P.Nair wrote:
> Having 
> suppressed the cookie usage, do i have to explicitly use URL 
> rewriting by using response.encodeURL(...) to encode the 
> sessionID?

Yes, shure.

Marc

>>See server.xml:
>>
>><!-- Session interceptor will extract the session id from cookies and
>>      deal with URL rewriting ( by fixing the URL ).  If you wish to
>>      suppress the use of cookies for session identifiers, change the
>>      "noCookies" attribute to "true"
>>   -->
>><RequestInterceptor
>>     className="org.apache.tomcat.request.SessionInterceptor"
>>     noCookies="true" />
>>
>>>>>Hi,
>>>>>
>>>>>Tomcat is creating 2 different sessions when another browser 
>>>>>window is opened from a main window. For instance, i have an 
>>>>>application, in which the first jsp page sends a request to a servlet 
>>>>>which inturn places a session object using 
>>>>>request.getSession().putValue("name1","value1");
>>>>>
>>>>>The servlet then dispatches the request to another jsp page, which 
>>>>>opens another jsp page in a new dependent window with the js call,
>>>>>
>>>>>window.open("/sqlplus/ShowScript.jsp",'wmSelectBaseClass','depe
>>>>>ndent=yes,width=700,height=380,left=210,top=240');
>>>>>
>>>>>
>>>>Does:
>>>>
>>>>HttpServletResponse.encodeURL("/sqlplus/ShowScript.jsp") 
>>>>
>>>>help?  This should encode the session id into the URL.
>>>>(But if the browser has cookies enabled maybe it wont)
>>>>

Reply via email to