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 October 24th, 2004, 12:35 PM
Registered User
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session Listener Fires On Every Request

I am using jakarta-tomcat-5.0.27 standalone on windows xp pro.
The browser (Firefox) is running on the same box as the server.

The problem i am having is that the session listener is being
invoked on every request to to tomcat from the client.

I expected that the listener would be invoked once, on the first
request to my application, but the application logging shows that
it is handling session create events from tomcat on every request
from the client.

Can anyone suggest an approach to debugging this problem?



Old October 24th, 2004, 11:58 PM
Registered User
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I found a workaround: visit the set from a host other than the one running Tomcat. In this situation tomcat does not generate a session-created event in response to every request from the client.

Apparently tomcat gets confused about consistently recognizing a client on its own host.

Is this a tomcat bug?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat - Creates New Session for every request IE6 vickyk_in Apache Tomcat 1 March 27th, 2007 10:41 PM
MouseOut event fires constantly MrSander BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 May 3rd, 2006 11:09 AM
Wrong DD SelectedIndexChanged fires Ron Howerton ASP.NET 1.0 and 1.1 Basics 7 March 9th, 2006 10:32 AM
New session gets created for every request. sasikanth Classic ASP Professional 0 September 26th, 2005 10:30 AM
Session_Start fires twice!!? Dmitriy Pro VB 6 1 March 17th, 2005 12:59 PM

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