Re: Need help with session.terminate.com
Re: Need help with session.terminate.com
- Subject: Re: Need help with session.terminate.com
- From: Colin Clark <email@hidden>
- Date: Tue, 19 Oct 2004 16:28:23 -0400
Hi Don,
When were you trying to save and then terminate? Are you using the
session's default editing context or a peer?
It makes sense to save your editing context in the action method bound
to your exit button. I will assume that you've also got a separate
logout page that you display when a user exits, I would suggest that
you override sleep() and terminate the session on that component. If
you're using the default editing context, this should work fine without
the problem of your EC getting garbage collected before you're finished
with your EO.
Colin
On Tuesday, October 19, 2004, at 01:01 PM, Gamache, Don wrote:
I have a web page that has an Exit button that calls a function to
update
the contact log table with the timestamp when the user exits the
application. This function updates the table, does a saveChanges
command
and then a session().terminate command and return command to take the
user
to a different URL. This caused an Error "Attempt to send message to
an
object after its editing context was disposed." Reason: "Attempt to
send
message to an object after its editing context was disposed.
EOGlobalID
was: _EOIntegerKeyGlobalID[COntact(java.lang.Integer)52]." Its like
the
it terminated before the update was done. I got around this by doing
the
saveChanges on the current component and taking the user to another
component where I then do the session(). terminate after they
selected the
link to the Home URL page. Is there a way to do a save.Changes and
session().terminate together so I don't have to create more
interaction
with the user? Thanks to anyone who can help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
---
Colin Clark
Dynamic Web and Database Development Lead,
Resource Centre for Academic Technology,
University of Toronto
(416) 946-7592 / 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