Solved

I lost the jsessionid in the encodeURL method

Posted on 2002-06-18
2
497 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
2 Comments
 
LVL 6

Accepted Solution

by:
kotan earned 50 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now