Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Tomcat session cookie configuration

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  java for apache  
Author Message
user2368

External


Since: Jul 10, 2003
Posts: 2



(Msg. 1) Posted: Tue Jan 06, 2004 4:59 am
Post subject: Tomcat session cookie configuration
Archived from groups: alt>apache>configuration (more info?)

Hello,

I want to use Tomcat 5 into the following architecture :

Apache 2 (host A)-----> Tomcat 5 (host B)

Apache 2 has rewrite rules :
Client URL : https://www.my_site.org/my_internet_url/my_jsp.jsp (host
A)
Real URL : http://tomcat_host:8080/WebApp/my_jsp.jsp (host B)

I want to use secure session cookie, with the path /my_internet_url,
but Tomcat put the path /WebApp (cf WebApp.xml) and set no secure for
the cookie (because the scheme of the request before Tomcat is http).

I have read source code from
org.apache.coyote.tomcat5.CoyoteRequest.configureSessionCookie, and I
see that this operation is correct.

How can I do to set my own session cookie path and my own security ?

WebApp.xml
<Context docBase="/home/seb/java/WebApp" path="/WebApp"
reloadable="true" />

server.xml
<Context path="/WebApp" reloadable="true"
docBase="/home/seb/java/WebApp" workDir="/home/seb/java/WebApp/work"
/>

 >> Stay informed about: Tomcat session cookie configuration 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Can I have same session ID for two domains w/in a same ser.. - Hello list, I have an web application that toggles between www.mydomain.com and secure.mydomain.com within a same server. The problem is that when I toggle, the session information is no longer unique between the two hosts (www & secure, in the exam...

Apache session problem (bug?) - Currently I am running Apache/1.3.27 width PHP/4.3.2 After a while I cannot login to sites that make use of sessions (like Squirrel). If Apache is restarted all is fine again. I suspect this is a bug and tried to find a solution on the internet..

session expiring early - Sessions stored in cookies have been expiring prematurely on Apache/Linux. Although my hosts have been working (I think) on the problem for 24 hours the problem still remains. Is there a php script or something that can do a diagnosis? Or any thoughts o...

How do I change session time-out to something longer - Cheer, I am using Tomcat 4.1.24. When I tried to read session info from my JSP program, it bumps if there is no activity for, say, 30 minutes. Is there a way that I can increase it to, say an hour, or just to disable this session time out....

Tomcat 4.0 - I have installed Tomcat 4.0 and am attempting to set up a simple web app containing basic HTML and java servlets. I find I can set this up under the root or examples directories that are included with tomcat, but when I attempt to set up HTML files/Java...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]