tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zabel, Ian" <>
Subject RE: Session lost between HTTPS and HTTP
Date Tue, 04 Feb 2003 17:46:44 GMT
As far as I know, and are supposed
to be allowed to share cookies on standard ports.


-----Original Message-----
From: Filip Hanik [] 
Sent: Tuesday, February 04, 2003 12:40 PM
To: Tomcat Users List
Subject: RE: Session lost between HTTPS and HTTP

yeah, it is a security issue I believe. Not sure how tomcat does that, but
it shouldn't allow a session that was created on HTTPS to switch to HTTP.


-----Original Message-----
From: Zabel, Ian []
Sent: Tuesday, February 04, 2003 9:35 AM
Subject: Session lost between HTTPS and HTTP



We are having a chronic problem that is causing a lot of trouble with our
application's users.


In our app, we authenticate users on our HTTPS server and then serve the
homepage also on HTTPS. All links on the homepage to the other pages in our
app switch the user to the same url on HTTP. If a user's session is created
on HTTPS ( <> ), when they are
switched over to HTTP ( <> ) the
session cookie is not sent by the browser and they therefore lose their


NOTE: This is not a problem if the user's session is created on HTTP. The
session is created on HTTP, they authenticate over HTTPS and then are
switched back to HTTP, and their session is maintained with no problems.


Our workaround has been to pass the jsessionid on the url wherever we can,
but there are places we can't do this. 


We did not start having this problem until we switched from
Apache/ServletExec to Apache/Tomcat4.0.x/mod_jk.


We are using Apache with OpenSSL to serve our HTTPS pages.


Is it valid for a cookie created on HTTPS to be sent to the same exact URL
on HTTP?





To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message