Hi Lorena,

> Can somebody tell me if there is a way to
> automatically invalidate a session
> variable?, not the whole session, just a
> variable, please answer me.

I think you're looking for the removeAttribute method of the session object:

session.removeAttribute("attributeName");

removeValue also works, but is deprecated. If the object referenced does not
exists, the method does nothing.

== Ross ==

Ross W. Lambert, CTO
WebWolves, LLC
voice: (509) 886-2049
e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
web: www.webwolves.com <http://www.webwolves.com>

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to