public static HttpSession session ( ) { HttpServletRequest httpServletRequest = request . get ( ) ; return ( httpServletRequest == null ) ? null : httpServletRequest . getSession ( ) ; }
Returns the HTTP session associated with the current thread .