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

Servlet session management


  • Subject: Servlet session management
  • From: Tom Pelaia <email@hidden>
  • Date: Fri, 14 Feb 2003 09:54:48 -0500
  • Organization: SNS Application Programming Group

Hi,

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?

We are deploying our WebObjects application under OC4J on Solaris and it seems to work well once you get the settings on the server and servlet correct. WebObjects allowed us to rapidly develop a powerful web based logbook that gets heavily used.

I had posted this request on the deployment list and no one responded. There seems to be very little activity on the deployment list.

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.

  • Follow-Ups:
    • Re: Servlet session management
      • From: Hsu <email@hidden>
    • WebObjects 5.1.4 on Mac OSX 10.2.3
      • From: Andre Olivier <email@hidden>
  • Prev by Date: RE: (no subject)
  • Next by Date: How to get Java 1.3 JDK for WO Development?
  • Previous by thread: RE: (no subject)
  • Next by thread: WebObjects 5.1.4 on Mac OSX 10.2.3
  • Index(es):
    • Date
    • Thread