hi,
Here is the code u asked for.
HttpSession session = request.getSession(true);
HttpSessionContext contxt = session.getSessionContext();
Enumeration enum = contxt.getIds();
HttpSession session1;
while(enum.hasMoreElements())
{
session1 = contxt.getSession((
String)enum.nextElement());
if(check for validitity of the session)
session1.invalidate();
}
hope this helps u
tc
vels