Solved

I lost the jsessionid in the encodeURL method

Posted on 2002-06-18
2
510 Views
Last Modified: 2012-06-22
Hello. I have a problem with the sessions in my wap application. I use tomcat 4.0.2 and in the tomcat
config i put the option cookies=false.
When i test the aplication in a mobil phone the test failled because i can't save the session. I use
the method encodeURL() in this manner:
<do type="accept" label="Sumar" name="num">
    <go href="<%= response.encodeURL("t.jsp") %>?status=1&numero=$numero"/>
</do>
 I suposse that the sessionId is coming with the method encodeURL but The jsessionid isn't appear in
the url of the cellular and the session lost. i don't know what happen  and how resolve that problem,
i need your help!!!
                      Thanks so much!!
                   Ing. Carolina Waizani
0
Comment
Question by:cwaizani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
kotan earned 50 total points
ID: 7091490
Are you sure you have disable the cookies?

Here is the sample of server.xml. "noCookies" set to true.

<!-- 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" />


0
 

Author Comment

by:cwaizani
ID: 7092593
Yes, i disable the cookies, but i use tomcat 4.0.1 and in this version i only can put in the server.xml:

  <Context path="/examples" docBase="examples" debug="0"   cookies="false" reloadable="true" crossContext="true">

The jsessionid isn't appear with the path of the encodeURL.

Do you know another parameter in that version to disable the cookies?
                   Thanks so muchs for your help
                          Carolina Waizani
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question