• 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: Servlet session management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Servlet session management (From: Tom Pelaia <email@hidden>)

  • Prev by Date: Internationalization Problem on WebObjects 5.1, Windows 2000
  • Next by Date: Re: How to get Java 1.3 JDK for WO Development?
  • Previous by thread: Servlet session management
  • Next by thread: How to get Java 1.3 JDK for WO Development?
  • Index(es):
    • Date
    • Thread