Howdy, Consider using a Filter as follows: public void doFilter(...) { if(request instanceof HttpServletRequest) { HttpSession theSession = ((HttpServletRequest) request).getSession(); if(theSession.getAttribute("dmSession") == null) { // Redirect to login page, print out error message, whatever } }
// Pass the request on chain.doFilter(request, response); } Map this filter to whatever you need authenticated (/* is one possibility). Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Mark F [mailto:[EMAIL PROTECTED] >Sent: Friday, June 06, 2003 12:16 PM >To: Tomcat Users List >Subject: check for session > >We use a content management system (documentum) it operates much like a >database as far as authentication. I save a documentum session object into >my httpSession as "dmSession" upon successful logon. I want to check for >the existence of this session on every page after the logon page, or if >there is an easier way please let me know? > >Any help would really be appreciated. > >Thanks, >-Mark This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]