Did my simple test on Tomcat 3.1 and yep, no USER_ID cookie displayed. I would assume it's a bug in Tomcat 3.1, which is unlikely to be fixed. You will need to upgrade to avoid this bug. There are a lot of other bugs you would avoid by upgrading as well.
Cheers, Larry > -----Original Message----- > From: Jovie Castaneda [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 17, 2001 7:29 PM > To: [EMAIL PROTECTED] > Subject: RE: How to change session key name > > > Hi Larry, > > Thanks for the reply I really want to make it but it seems > that I cant > get > what's going on here is it beacause im using Tomcat 3.1? > > > -----Original Message----- > From: Larry Isaacs [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 17, 2001 11:20 PM > To: '[EMAIL PROTECTED]' > Subject: RE: How to change session key name > > > I tried this with Tomcat 3.2.3 and 3.3 and I see > both the User_ID cookie as well as the JSESSIONID cookie. > It's not clear which version of Tomcat you are using, > or what you might be doing differently from my simple > test case. > > Cheers, > Larry > > > -----Original Message----- > > From: Jovie Castaneda [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, October 17, 2001 3:24 AM > > To: [EMAIL PROTECTED] > > Subject: RE: How to change session key name > > > > > > sorry to interrupt guys but ive been bugged with this > > JSESSION problem too.. > > i was attempting to create cookies with this code > > > > Cookie cookie1 = new Cookie("User_ID", Integer.toString(userid)); > > res.addCookie(cookie1); > > res.sendRedirect("/test/servlet/MyServlet"); > > > > I am expecting to get the cookies I have set when I > retrieve them from > > "MyServlet" > > Using this code: > > > > if (cookies !=null){ > > for(int i=0; i< cookies.length; i++){ > > System.out.println("Name : "+cookies<i>.getName()); > > System.out.println("Value : "+cookies<i>.getValue()); > > } > > } > > > > > > My expected result should be the following: > > Name: UserID > > Value: UserID Value > > > > But why am i getting only 1 value which happens to be > > JSESSIONID ( coming from the session created) > > and its sessionid as the value > > why cant it create cookies and store the values in it? > > > > PLEASE HELP HERE....THANKS A LOT!@! > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, October 17, 2001 5:27 PM > > To: [EMAIL PROTECTED] > > Subject: Re: How to change session key name > > > > > > Firestar wrote: > > > > > > Hi, by default session-key name in tomcat is > > > JSESSIONID. Is there a way for me to change the > > > session-key name (to something shorter for e.g.)? I > > > can't seem to find it in any of the config files. > > > Thanks in advance. > > > > Don't think so. JSESSIONID is from the Servlet Spec. Unless, > > of course, > > you wish to download the source, modify it and become non > > compliant with > > the spec... > > > > Bojan > > >