Christian:

try this:

// If logout value = true then the logout procedure has
// been selected. We need to invalidate session.
String logout = ((request.getParameter("logout")!=null)?
request.getParameter("logout"):null);
if (logout!=null){
session.invalidate();

Regards,

Martin Gainty

______________________________________________

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.

The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.

LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.

             _____________GMT-5___________________

 

>From: Christian Hamann L <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Controlling session when user is out
>Date: Fri, 13 Dec 2002 10:26:22 -0500
>MIME-Version: 1.0
>Received: from mc5-f25.law1.hotmail.com ([65.54.252.32]) by mc5-s1.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 13 Dec 2002 07:27:50 -0800
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc5-f25.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 13 Dec 2002 07:27:48 -0800
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 431C021C9B; Fri, 13 Dec 2002 08:24:32 -0700 (MST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 4730711 for [EMAIL PROTECTED]; Fri, 13 Dec 2002 08:22:18 -0700
>Received: from mail.usmp.edu.pe (mail.usmp.edu.pe [200.60.70.53]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 85D49480E for <[EMAIL PROTECTED]>; Fri, 13 Dec 2002 08:22:17 -0700 (MST)
>Received: from desarr10 ([200.60.70.50]) by mail.usmp.edu.pe (8.9.3/8.9.3) with SMTP id KAA15390 for <[EMAIL PROTECTED]>; Fri, 13 Dec 2002 10:26:15 -0500
>Delivered-To: [EMAIL PROTECTED]
>References: <[EMAIL PROTECTED]>
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 6.00.2800.1106
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
>Message-ID: <008601c2a2bb$fde1e860$[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 13 Dec 2002 15:27:48.0525 (UTC) FILETIME=[3158CDD0:01C2A2BC]
>
>Hi All
>I have applications in my Application Server, which everybody are connecting
>to database, for some applications i use beans to manage information, but
>whne the user close the browser i dont know how can control his session, i
>can put a button for inavlidate sessions, but the user dont use that option,
>what can i do to controll it. Because it does lowest to my Server, because
>the session wasn't invalidated.
>
>atte
>
>Christian Hamann L.
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com


The new MSN 8: smart spam protection and 2 months FREE* =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com

Reply via email to