How Could i Invalidate session for particular Client Id

i want to Invalidate session For Particular Client Id

How COuld i do that for sepeater Application client id
LVL 9
Manikandan ThiagarajanSenior consultantAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
HttpSession applicationSession = req.getSession(true);
HttpSessionContext context = applicationSession .getSessionContext();
Enumeration ids = context.getIds();


ids have alll  sessionIds so u can ivalidate what id u want try that !!

loop this ids after that u will comapre the id u want
if both id is equal then

applicationSession .invalidate();
0
All Courses

From novice to tech pro — start learning today.