Mark Derricutt wrote:
I have a session listener attached to my application and I noticed
that resin 3.0.24 seems to be creating new sessions for every
js/css/image mentioned in my JSPs:
23:21:28,185 INFO [SessionListener] There are now 131 live sessions
in the application.
23:21:28,854 INFO [SessionListener] New Session created on Sun Feb 17
23:21:28 NZDT 2008 with id: abce2SQNxabqEdacORMGr from uri
/images/space.gif for null
23:21:28,855 INFO [SessionListener] There are now 132 live sessions
in the application.
23:21:28,856 INFO [SessionListener] New Session created on Sun Feb 17
23:21:28 NZDT 2008 with id: abce2SQNxabqEdacORMGr from uri
/images/box_main_bot_right.gif for null
23:21:28,856 INFO [SessionListener] There are now 134 live sessions
in the application.
23:21:28,856 INFO [SessionListener] New Session created on Sun Feb 17
23:21:28 NZDT 2008 with id: abce2SQNxabqEdacORMGr from uri
/images/box_main_bot_left.gif for null
Is this a bug in resin, or should I be looking somewhere in my
application for a rogue filter thats kicking in sessions (I couldn't
spot anything walking back up the chain in my debugger thou)?
Oddly - the session id always appears to be the same, so I suspect
Resin is calling my sessionCreated() method more than it should.
Any ideas?
On a similar note I noticed that with a Cluster the session store will
get reloaded for each .gif request.
In our case I assumed that the browser was creating a new connection to
the server, and its pretty hard
for the server to know what requests change session state and which one
don't hence the reload.
mark
--
"The L in LAMP stands for Linux, not Looney" - Jonathan Schwartz, Sun
Microsystems, Inc.
------------------------------------------------------------------------
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest
--
-Rob
*_________________________________________
** Robert Leland INTEGRITY One Partners *
P: (703) 581-6522 1900 Campus Commons Drive, Suite 150
F: (703) 476-7405 Reston, VA 20191
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*BUSINESS CONSULTING | TECHNOLOGY | INNOVATION R&D*
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest