Solved

I lost the jsessionid in the encodeURL method

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Primefaces: How to display a variable that can take only 'Y' or 'N' or a boolean value. 2 118
getting param value 7 53
print map entry 34 69
login jsp example 24 50
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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