Hi guys,

I am doing a project using HttpSession. I created a multiple session that
will exists as long the user open the browser. However, I am now a little
bit confused on how should I invalidate all the sessions created since some
of the session that will be created were created dynamically (using
getParameter on request form).

Now I am trying to make a link that will call another servlet just to
invalidate the current sessions, Would you please tell me how to do so,
especially if I I assign each session with different name.

This is the sample of my session generator:
HttpSession session1, session2;
session = req.getSession(true);

session.putValue("name", "John");
session.putValue("pass", "Jovy");



What if I have more than one session variable declared:

HttpSession session1, session2;
session1 = req.getSession(true);
session2 = req.getSession(true);

session1.putValue("name", "John");
session2.putValue("pass", "Jovy");


I really appreciate any input.

Than you so much, especially for Dustin Callaway and Jason Hunter that have
been very nice to help me out.

Rendra Basuki

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to