> I have a doubt on session, can any body tell me if it is necesary to
> invalidate a session when the user  presses a button that have a the
> following javascript code:   "javascript:window.top.close()", that closes
> the browser window?.

The session invalidates after time when the browser was closed(). You can't
invalidate a session from JavaScript. Don't mix client side with server side
scripting.

> If I have to invalidate the session, how can i do it with javascript, i
can
> not use the method invalidate of the HttpSession object because I am using
> html for the menues and not jsp, what can I do in that case.

You may open a jsp page with Javascript. That jsp page invalidates the
session and a script on this page closes the window.

ciao!

===========================================================================
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