Re: Session objects
Re: Session objects
- Subject: Re: Session objects
- From: Jonathan Rochkind <email@hidden>
- Date: Mon, 31 Mar 2003 11:33:06 -0600
At 05:07 PM 3/30/2003 -1000, Art Isbell wrote:
Well, for sure when the session terminates either by timing out
or by the invocation of a "sign out" method that terminates the
session. A session object might be released each time it is stored by
WOSessionStore, but I'm not sure. I think I've noticed that the address
of the session object remains constant over several request-response
cycles which might argue against it being released after each
request-response cycle. Anyone know?
I'm pretty sure the default WOSessionStore in WO 5 (it's Java now remember)
just plain holds a reference to the session object. So, yes, that Session
object will persist until the session itself no longer exists---that is,
when the session is terminated, either because of a timeout or an explicit
terminate.
I haven't investigated this intensively, but I can't think of any other
reasonable way it COULD work! I mean, if the default WOSessionStore is
allowing the Session to be GC'd between requests---then how the heck does
the session persist for the next request? The WOSessionStore serializes it
and then keeps the serialized data in memory instead of the actual
WOSession object? I suppose it could be done that way for instance... but
I'm pretty sure it's not.
--Jonathan
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.