• 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: Session terminate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Session terminate


  • Subject: Re: Session terminate
  • From: Sébastien Gruhier <email@hidden>
  • Date: Wed, 18 May 2005 08:40:51 +0200

Thanks it works.

I have seen this function in the callstack but like it's undocumented, I thought it was a private function. I think it's better than parsing the toString() but I suppose it could be removed in a next release like it's not really a public function.

Anyway, right now it works fine.
Thanks
Seb

Le 17 mai 05 à 21:04, Pierre Frisch a écrit :

If you are into private methods you can overwrite _terminateByTimeout() and get whatever action you want there.

public void _terminateByTimeout()

Pierre


On 17-May-05, at 9:44 AM, Mark Ritchie wrote:


On May 17, 2005, at 12:16 PM, Sébastien Gruhier wrote:


I have overriden the terminate function in Session but how do I know if the call is done by a timeout?



I have an icky way to do this... I'd love to find a cleaner solution if anyone has one.
< mutters something about private ivars and no accessor methods... >


If you print out Session's toString(), you should see something like _wasTimedOut
followed by true or false. (Note that there are spacing issues around _wasTimedOut).
In my implementation of terminate(), I parse the toString() and check the flag.
Did I mention that this was a terrible way to find out if you've been terminated by a
timeout but it works for me. Tested under: WOF 5.2.3, OSX 10.2.8
This is very likely to be effected by version / platform / phase of the moon changes. :-)


Good luck!
Mark.
__
Mark Ritchie, email@hidden 416-843-5479
Software Developer, Apple Certified Developer Trainer
WebObjects, Cocoa, Mac OS X and Mac OS X Server
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:
@spearway.com


This email sent to email@hidden






_______________________________________________ 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: 
 >Session terminate (From: Sébastien Gruhier <email@hidden>)
 >Re: Session terminate (From: Mark Ritchie <email@hidden>)
 >Re: Session terminate (From: Pierre Frisch <email@hidden>)

  • Prev by Date: Re: Creating PDF from MS Word Document
  • Next by Date: WOToManyRelationship trouble
  • Previous by thread: Re: Session terminate
  • Next by thread: RE: Session terminate
  • Index(es):
    • Date
    • Thread