RE: Tomcat not sending session cookies to IE
Ian, I actually have the same exact problem, except the scenario only seems to occur when the hostname specified in the request is that for a cluster. If I use the IP it works fine. It also works fine if I access the actual cluster machines, whether I specify the IP or the hostname. The only time, the session is terminated is when I specify the cluster hostname and in that scenario, I have the exact symptoms you describe. This probably doesn't help you, but at least you know you're not alone! If you happen upon a solution, I would be grateful for an e-mail. Likewise, I will let you know if we find a solution. Mike -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 6:04 PM To: Tomcat Users List Subject: Re: Tomcat not sending session cookies to IE On Friday 14 March 2003 9:18 am, Dennis Cartier wrote: Ian, If you are stumped, you could try running a sniffer to see just what is included in the response. Set-Cookie header or not. Tcpdump on any Unix box or Ethereal comes in handy for this. Dennis Well first off, let me thank you for introducing me to such a cool new toy. I installed Ethereal and did some sniffing, and there's just a whole lot of cool stuff you can find out with that program. What a fun thing for a Friday afternoon. :-) Anyway, back to the issue at hand. I did two runs with Ethereal, one from the test box browser to the client server Tomcat, which does not work, and then from the client server IE to the test box Tomcat, which does work. Tomcat is sending the cookie in both instances, but the next connection from the client, it does not send the cookie back from the test box browser for the client server Tomcat (it does in the other case). So, why is the browser rejecting that cookie? I tried one last thing (which I should have tried long ago) - I used the IP address of the machine in the URL instead of its name. And guess what? I works. So it seems those who said it was a domain thing were right, but I can't figure out exactly why it's acting this way when Mozilla didn't have a problem using the hostname. The hunt for the perfect answer continues (but at least now it sort-of works). Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not sending session cookies to IE
hi Mike, a nice way to debug this would be to print out the data being sent back and forth. If you want, you can put my java loadbalancer in front, and set it to debugString and it will print out the HTTP packages being sent. http://www.filip.net/tomcat-clustering.html at the end of the page, there is a loadbalancer, there is a flag -debugString that will print out every request and response to standard out. That way you can see what your cookies are set too. can you give us an example of how your cluster hostname is different from a hostname on any other machine, and also, are you running Apache in front of Tomcat? Filip -Original Message- From: hegerich, mike [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 9:50 AM To: 'Tomcat Users List' Subject: RE: Tomcat not sending session cookies to IE Ian, I actually have the same exact problem, except the scenario only seems to occur when the hostname specified in the request is that for a cluster. If I use the IP it works fine. It also works fine if I access the actual cluster machines, whether I specify the IP or the hostname. The only time, the session is terminated is when I specify the cluster hostname and in that scenario, I have the exact symptoms you describe. This probably doesn't help you, but at least you know you're not alone! If you happen upon a solution, I would be grateful for an e-mail. Likewise, I will let you know if we find a solution. Mike -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 6:04 PM To: Tomcat Users List Subject: Re: Tomcat not sending session cookies to IE On Friday 14 March 2003 9:18 am, Dennis Cartier wrote: Ian, If you are stumped, you could try running a sniffer to see just what is included in the response. Set-Cookie header or not. Tcpdump on any Unix box or Ethereal comes in handy for this. Dennis Well first off, let me thank you for introducing me to such a cool new toy. I installed Ethereal and did some sniffing, and there's just a whole lot of cool stuff you can find out with that program. What a fun thing for a Friday afternoon. :-) Anyway, back to the issue at hand. I did two runs with Ethereal, one from the test box browser to the client server Tomcat, which does not work, and then from the client server IE to the test box Tomcat, which does work. Tomcat is sending the cookie in both instances, but the next connection from the client, it does not send the cookie back from the test box browser for the client server Tomcat (it does in the other case). So, why is the browser rejecting that cookie? I tried one last thing (which I should have tried long ago) - I used the IP address of the machine in the URL instead of its name. And guess what? I works. So it seems those who said it was a domain thing were right, but I can't figure out exactly why it's acting this way when Mozilla didn't have a problem using the hostname. The hunt for the perfect answer continues (but at least now it sort-of works). Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
Could it be this? http://marc.theaimsgroup.com/?l=tomcat-devm=104247780113629w= -Tim Ian Bruseker wrote: Greetings, list. I'm having IE issues. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
On Thursday 13 March 2003 11:40 pm, Bill Barker wrote: I've never had problems myself with TC 3.3.x-5.0.x (I stopped using 3.2.x long ago :). IE 6.x has a cookie-lockout feature that may be causing the problem. With the factory settings, Tomcat should be fine. Go to Tools-Internet Options-Privacy to see if your settings are too high (e.g. anything above Medium High). I tried that, but it didn't help. But I also ruled that out because the same browser will connect to my development Tomcat instance but not to the client server, without any modification to the IE cookie settings. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
On Friday 14 March 2003 5:11 am, Tim Funk wrote: Could it be this? http://marc.theaimsgroup.com/?l=tomcat-devm=104247780113629w= -Tim It looks close, but I don't think that's it. For that issue to be true here, the browser would have had to have received a cookie in the first place. But I kept checking the Cookies folder and when I connect to my development server, a cookie appears there. When I connect to the client's server, no cookie ever shows up in the Cookies folder - that's what makes me think Tomcat isn't sending it in the first place. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not sending session cookies to IE
If the domain and path of the cookie do not map correctly to your web application, the browser will not send it. I like to use Mozilla when troubleshooting cookie problems because it allows you to look at the cookies and make sure they are as you expected. -sean -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 8:52 AM To: Tomcat Users List Subject: Re: Tomcat not sending session cookies to IE On Thursday 13 March 2003 11:40 pm, Bill Barker wrote: I've never had problems myself with TC 3.3.x-5.0.x (I stopped using 3.2.x long ago :). IE 6.x has a cookie-lockout feature that may be causing the problem. With the factory settings, Tomcat should be fine. Go to Tools-Internet Options-Privacy to see if your settings are too high (e.g. anything above Medium High). I tried that, but it didn't help. But I also ruled that out because the same browser will connect to my development Tomcat instance but not to the client server, without any modification to the IE cookie settings. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
On Friday 14 March 2003 8:58 am, Scott, Sean wrote: If the domain and path of the cookie do not map correctly to your web application, the browser will not send it. I like to use Mozilla when troubleshooting cookie problems because it allows you to look at the cookies and make sure they are as you expected. I just gave that a shot, took a look through Mozilla's cookie manager. I'm not sure domain names come in to play here. I am accessing both servers using their hostnames only, no domain names - this is all taking place on the local network. So each cookie is identified by its host, not its domain. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not sending session cookies to IE
Ian, If you are stumped, you could try running a sniffer to see just what is included in the response. Set-Cookie header or not. Tcpdump on any Unix box or Ethereal comes in handy for this. Dennis -Original Message- From: Ian Bruseker [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 11:11 AM To: Tomcat Users List Subject: Re: Tomcat not sending session cookies to IE On Friday 14 March 2003 8:58 am, Scott, Sean wrote: If the domain and path of the cookie do not map correctly to your web application, the browser will not send it. I like to use Mozilla when troubleshooting cookie problems because it allows you to look at the cookies and make sure they are as you expected. I just gave that a shot, took a look through Mozilla's cookie manager. I'm not sure domain names come in to play here. I am accessing both servers using their hostnames only, no domain names - this is all taking place on the local network. So each cookie is identified by its host, not its domain. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
On Friday 14 March 2003 9:18 am, Dennis Cartier wrote: Ian, If you are stumped, you could try running a sniffer to see just what is included in the response. Set-Cookie header or not. Tcpdump on any Unix box or Ethereal comes in handy for this. Dennis Well first off, let me thank you for introducing me to such a cool new toy. I installed Ethereal and did some sniffing, and there's just a whole lot of cool stuff you can find out with that program. What a fun thing for a Friday afternoon. :-) Anyway, back to the issue at hand. I did two runs with Ethereal, one from the test box browser to the client server Tomcat, which does not work, and then from the client server IE to the test box Tomcat, which does work. Tomcat is sending the cookie in both instances, but the next connection from the client, it does not send the cookie back from the test box browser for the client server Tomcat (it does in the other case). So, why is the browser rejecting that cookie? I tried one last thing (which I should have tried long ago) - I used the IP address of the machine in the URL instead of its name. And guess what? I works. So it seems those who said it was a domain thing were right, but I can't figure out exactly why it's acting this way when Mozilla didn't have a problem using the hostname. The hunt for the perfect answer continues (but at least now it sort-of works). Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not sending session cookies to IE
Greetings, list. I'm having IE issues. :-) I have Tomcat set up on Win2K, SP3, and it refuses to send the session cookie to IE (version 6, SP1). This means that I can log in to my application just fine, but when I click to the next page and my code checks for a valid session, it finds none. (works fine with Mozilla 1.2.1 and Konqueror 3.0) It worked fine when I first set up this server (a customer's server that they sent to us to work with), back in January. We sent the machine back to the client, and it didn't work, so sent it back and I found some things that I'm not sure were there when I first set up the box - the .NET framework, and FrontPage 2002 Server Extensions. Those may be related, may not - I mention them just in case. I have attacked this problem from many angles and just can't figure out what's going on. The original version of Tomcat was 3.2.3 (yes, very old, you don't need to tell me). Thinking it might be something with that version, I tried 3.2.4 (baby steps), and 3.3.1a (toddler steps). Same problem. Thinking maybe IIS was being a pain, I tried going directly to port 8080 to bypass the redirector. Same problem. Thinking it was a browser issue, I fiddled with the cookie settings for IE on the server machine, setting it to accept everything. No joy. So I tried hitting it from another machine, my daily workstation, which I know works fine because I IE every day to hit my local Tomcat instance. Didn't work either. Tried pointing the server IE to the Tomcat instance on my workstation - worked fine, which tells me IE on the server is willing to accept cookies. So, the Tomcat instance on my workstation will send out cookies, and both my browser and the server browser will accept them. The Tomcat instance on the server does not send out the cookies, either when going through IIS or running standalone. I've done a diff of all the configuration files for Tomcat between my instance of Tomcat and the one on the server (when they are both 3.2.3, as that's what's on my machine), and they are all identical except the auto-generated ones, which I don't really care about anyway. Help. :-) Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not sending session cookies to IE
I've never had problems myself with TC 3.3.x-5.0.x (I stopped using 3.2.x long ago :). IE 6.x has a cookie-lockout feature that may be causing the problem. With the factory settings, Tomcat should be fine. Go to Tools-Internet Options-Privacy to see if your settings are too high (e.g. anything above Medium High). Ian Bruseker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings, list. I'm having IE issues. :-) I have Tomcat set up on Win2K, SP3, and it refuses to send the session cookie to IE (version 6, SP1). This means that I can log in to my application just fine, but when I click to the next page and my code checks for a valid session, it finds none. (works fine with Mozilla 1.2.1 and Konqueror 3.0) It worked fine when I first set up this server (a customer's server that they sent to us to work with), back in January. We sent the machine back to the client, and it didn't work, so sent it back and I found some things that I'm not sure were there when I first set up the box - the .NET framework, and FrontPage 2002 Server Extensions. Those may be related, may not - I mention them just in case. I have attacked this problem from many angles and just can't figure out what's going on. The original version of Tomcat was 3.2.3 (yes, very old, you don't need to tell me). Thinking it might be something with that version, I tried 3.2.4 (baby steps), and 3.3.1a (toddler steps). Same problem. Thinking maybe IIS was being a pain, I tried going directly to port 8080 to bypass the redirector. Same problem. Thinking it was a browser issue, I fiddled with the cookie settings for IE on the server machine, setting it to accept everything. No joy. So I tried hitting it from another machine, my daily workstation, which I know works fine because I IE every day to hit my local Tomcat instance. Didn't work either. Tried pointing the server IE to the Tomcat instance on my workstation - worked fine, which tells me IE on the server is willing to accept cookies. So, the Tomcat instance on my workstation will send out cookies, and both my browser and the server browser will accept them. The Tomcat instance on the server does not send out the cookies, either when going through IIS or running standalone. I've done a diff of all the configuration files for Tomcat between my instance of Tomcat and the one on the server (when they are both 3.2.3, as that's what's on my machine), and they are all identical except the auto-generated ones, which I don't really care about anyway. Help. :-) Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]