Solved

I lost the jsessionid in the encodeURL method

Posted on 2002-06-18
2
508 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Postmortem reporting allow us to examine mistakes in a way that focuses on the situational aspects of a failure’s mechanism and the decision-making process of individuals proximate to the failure. Read our guide on how to handle IT post-mortem repor…
Let’s face it: one of the reasons your organization chose a SaaS solution (whether Microsoft Dynamics 365, Netsuite or SAP) is that it is subscription-based. The upkeep is done. Or so you think.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 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