Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2007, 09:23 AM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tomcat - Creates New Session for every request IE6

Hello Friends,

My Website setup.
   I have a domain registered and with my domain name provider I have set up a forward to another domain at dyndns.org. And this dyndns.org domain forwards to my modem IP. (I am using a DSL connection).

Problem Definition:

Scenario 1.> When I run my application on tomcat and try to access it on tomcat using "http://127.0.0.1:8080/MyApp/abc.do. It works fine.

Scenario 2.> When I run my application on tomcat but access it through apache web server by using "http://localhost/MyApp/abc.do". It works fine.

Scenario 3> The real problem.. When I access my application through internet by using "mydomainname.com/MyApp/abc.do" it works but it creates a new session for every request. So I loose information if user has already logged in. This problem ONLY OCCURS WITH IE6. I have tried it with fire fox and IE7 it works fine. I am trying to find a solution for this. I guess there is some setting in some configuration file that might fix it.

Severs and software versions I am using
  1. Tomcat 6.0.10
  2. Apache Web server 2.2.4
  3. JDK 5.0_11
  4. JRE 1.5.0_11


Any Help on this is highly appreciated.
 
Old March 27th, 2007, 10:41 PM
Authorized User
 
Join Date: Apr 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

One thing I would check is if IE is allowing the cookies. Most of the times, session info is set in the cookies..

The other one to check would be is IE sending back the cookie that was sent.

To check first one should be pretty easy. Go to Internet Options and check if it is accepting cookies.

To check second one, you need something like IeHttpHeaders(http://www.blunck.se/iehttpheaders/iehttpheaders.html) installed and check the request headers to see if IE is sending back the cookie and the domain name it is sending back to.

Guess that would help.

Regards,
eNJay






Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat session varibale ibozo Servlets 2 June 4th, 2007 05:48 AM
New session gets created for every request. sasikanth Classic ASP Professional 0 September 26th, 2005 10:30 AM
Apache Tomcat stop process my request chanmy8 Apache Tomcat 0 June 15th, 2005 07:07 PM
Session Listener Fires On Every Request bwinspur Apache Tomcat 1 October 24th, 2004 11:58 PM
Request-response in Tomcat sherbir Servlets 0 September 4th, 2004 04:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.