Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Tomcat - Automatically writes a session?

Neal

2004-01-20

Replies:

Unreal!!!! I've done everything I can think of and I'm still seeing a
JSession cookie in the header of my pages:

I've tried:
1. server.xml file -> host/@(protected)
2. <%@(protected).
3. Restarted application numerous times.
4. Absolutely no code to write a cookie or a session ANYWHERE in the
entire applcation.

Any ideas??!

Here's the Header being returned:
Server Response: http://www.travelusa.com/hotels.jsp?2
Status: HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=FC6ECEFBABA482AE6707EC400E229FB1; Path=/
Content-Type: text/html;charset=ISO-8859-1
Transfer-Encoding: chunked
Date: Tue, 20 Jan 2004 10:44:21 GMT
Server: Apache Coyote/1.0


Thanks.
N


-----Original Message-----
From: Neal [mailto:nealcabage@(protected)]
Sent: Monday, January 19, 2004 11:53 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat - Automatically writes a session?

You're kidding? So, by default, I'm writing a freaking session for
every single page? That sounds like a colossal waist of resources.
Thanks though for the tip!

Neal


-----Original Message-----
From: Antonio Fiol Bonnín [mailto:fiol.bonnin@(protected)]
Sent: Monday, January 19, 2004 11:46 PM
To: Tomcat Users List
Subject: Re: Tomcat - Automatically writes a session?

You have to specify it on the JSP pages. I can't remember it properly,
but it must be something like:

<@(protected)" @>

Google for it on the Tomcat site. I think you will find it.

Antonio Fiol


Neal wrote:

>Someone just pointed out that my JSPs are have this in the header:
>
>"Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/"
>
>The problem is that I'm not setting any sessions or cookies from the
>page so I have no idea what's going on. Is there some reason this is
>there? Is there some setting in the Web.xml and/or server.xml file
that
>I must tweak?
>
>PS - I use Tomcat has my http server, not apache (in case that's
>meaningful).
>
>Thanks.
>Neal
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.