Re: Apps that don't release unused sessions
site_archiver@lists.apple.com Delivered-To: webobjects-dev@lists.apple.com On Jan 29, 2005, at 8:27 PM, George Domurot wrote: I didn't get a stack trace. Well, that seems pretty definitive. :-) Chuck -George On Jan 29, 2005, at 5:49 PM, Chuck Hill wrote: Chuck public WOSession createSessionForRequest(WORequest aRequest) { WOSession aSession = null; WOContext aContext = new WOContext(aRequest); return aSession; } Much thanks, George On Jan 27, 2005, at 5:57 PM, George Domurot wrote: Has anyone seen this occur? Any ideas about resolution? Any input is appreciated. Thanks, George -- George Domurot george@boxofficetickets.com This email sent to george@boxofficetickets.com This email sent to chill@global-village.net<<<< -- This email sent to chill@global-village.net _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/site_archiver%40lists.... By adding this code to your Application object, users that return to the app get their previous session restored, if it hadn't timed-out yet - as long as the URL directing the user includes the .woa at the end of the app name. I still don't understand why this would not happen automatically. I use cookies all the time for this and don't use any such code. What am I missing, what is different about your situation? It would be quite interesting to see the stack traces from a thread dump of an that has an immortal session as the result of this code. I felt this code was the root of the issue since the problem didn't exist prior to adding the code. And, after removing it, the problem disappeared. What exactly is the purpose of that piece of code? It seems like createSession would only be called if it has not already been determined that the session could not be restored. Do you have a stack trace? Why do you think this code is the cause of your problems? At 12:41 PM 29/01/2005 -0800, George Domurot wrote: Chuck/Helge/Tim: Thank you for the ideas and pointers. I was able to pinpoint the issue down to a bit of code I added to restore returning visitor's sessions. I picked it up from someone's earlier posting/notes. Here's the code from the Application class: if (aContext!=null){ String sessionID = aRequest.cookieValueForKey(WORequest.SessionIDKey); String instance = aRequest.cookieValueForKey(WORequest.InstanceKey); if(!XOEO.Empty(sessionID)) aSession = restoreSessionWithID(sessionID, aContext); } if(aSession == null) return super.createSessionForRequest(aRequest); Any ideas why this would cause the problem? Also, looking at the code a bit more, the line about the instance number doesn't seem relevant to the method. We have an app that doesn't want to release inactive sessions (usually just 1). This becomes a problem during scheduled graceful cycling. There are other apps running under the same deployment scenario for more than a year, all smooth. _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-deploy/ george%40boxofficet ickets.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global- village .net Chuck Hill chill@global-village.net Global Village Consulting Inc. http://www.global-village.net _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global- village.net -- Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems. http://www.global-village.net/products/practical_webobjects This email sent to site_archiver@lists.apple.com
participants (1)
-
Chuck Hill