Thursday, 1 September 2016

Getting Session Object using Session Id (HttpServlet ) ~ gniithelp

HttpSessionContext is very usefull interface for getting all session objects using with session Id .

HttpSessionContext sc=request.getSession().getSessionContext();
HttpSession session=sc.getSession(session_id);


But In version 2.1 of the Servlet API the HttpSessionContext class was deprecated for security reasons by Sun, with no plans for a replacement. In short, steer clear of HttpSessionContext

No comments:

Post a Comment