Session termination under Servlet
Session termination under Servlet
- Subject: Session termination under Servlet
- From: Tom Pelaia <email@hidden>
- Date: Wed, 22 Jan 2003 08:47:53 -0500
- Organization: SNS Application Programming Group
We are deploying our WebObjects application as a servlet under OC4J on
Solaris. It seems to deploy fine, but we have issues with session
termination from within WebObjects. For security reasons, we have a
logout link in the navigation bar at the top of each page. The link is
to a Logout page that simply posts that the user has successfully logged
out and in the sleep() method of that page I call session().terminate().
Unfortunately, this does not terminate the servlet session, so the user
can still backtrack and continue to navigate forward. Some odd behavior
occurs when the user attempts to use a page with database access, since
the terminate() destroyed the editing context. When they try to log
back in, the browser remembers the servlet session and attempts to reuse
it which causes the session to freeze. Another problem occurs when the
user logs out and then later the servlet session times out and the
session.terminate() method gets called a second time which repeats
actions that should only be done once and hence throws exceptions.
What is the right way to logout of a servlet session from within WebObjects?
thanks,
-tom
--
Tom Pelaia
SNS Project, 701 Scarboro Road, MS-6473, Oak Ridge, TN 37831
phone: (865)574-6421, fax: (865)574-6617
_______________________________________________
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.