Re: Servlet session management
Re: Servlet session management
- Subject: Re: Servlet session management
- From: Hsu <email@hidden>
- Date: Fri, 14 Feb 2003 09:00:48 -0800
Does anyone know how to do session management from within WebObjects
when deploying as a Servlet? Namely, I want to programmatically
logout a user when they click a "logout" link. The normal
session.terminate() method does not work because it only frees
resources withing WebObjects and the Servlet then later times out and
calls this method a second time. The only way I can do it is to grab
the Servlet context and invalidate the servlet, but the code is
complicated because I need to check for and load the code dynamically
since during development I don't want J2EE dependency in my code
(especially an issue if other developers don't have J2EE jars
installed). Is there a proper way to logout a servlet session safely
from within the WebObjects API?
I believe this is a known bug / limitation in the current version of
WO. I don't currently know of a workaround (other than the one that you
outline here).
Karl
--
What is life? A frenzy
What is life? An illusion,
a shadow, a fiction,
and the greatest possession is nothing
since life is but a dream
and dreams are but dreams
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.