Re: Large number of sessions creating in WO appliations
Re: Large number of sessions creating in WO appliations
- Subject: Re: Large number of sessions creating in WO appliations
- From: Mark Ritchie <email@hidden>
- Date: Fri, 23 Jan 2009 01:45:59 -0500
On 23-Jan-09, at 12:24 AM, NAGA MALLESWARA RAO MADDALI wrote:
Please help me out why active sessions are still showing in the
WOStats page even though users had logged out from the application.
I've always looked at this problem from the opposite direction. Look
at what is creating sessions and stopping any extraneous ones. For
example, IMHO a login page should never spawn a session. It should be
stateless so that random visits to it don't cause false sessions to be
created among other reasons.
Launch your application under jdb (use the -NSJavaDebugging YES
argument on the command line)
Set a break point in the WOSession constructor with:
stop in com.webobjects.appserver.WOSession.<init>()
and then run the application.
When you hit the break point, use the 'where' command to see who is
creating the session.
Good luck!
Mark
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden