• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Large number of sessions creating in WO appliations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Large number of sessions creating in WO appliations (From: "NAGA MALLESWARA RAO MADDALI" <email@hidden>)

  • Prev by Date: Large number of sessions creating in WO appliations
  • Next by Date: Large number of sessions creating in WO appliations
  • Previous by thread: Large number of sessions creating in WO appliations
  • Next by thread: Large number of sessions creating in WO appliations
  • Index(es):
    • Date
    • Thread