Solved

I lost the jsessionid in the encodeURL method

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

Suggested Solutions

Title # Comments Views Activity
best way to search/remove a file from an EAR file 3 116
Is it possible to "sandbox" html content within a JSP? 4 110
mask rule in struts validation.xml 5 99
ejb on wildfly 5 47
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
This article discusses how to implement server side field validation and display customized error messages to the client.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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