mardi 21 juillet 2015

Is it fine to call request.getAttribute() after session.invalidate()

I have an application that calls the following HttpServletRequest and Session methods in sequence:

  • request.setAttribute("name", "strVal"); in some servlet A.
    session.invalidate(); in a different servlet B.
    request.getAttribute("name"); in a JSP.

Is it fine to call request.getAttribute() after the session is invalidated and why/why not?

Thanks

Aucun commentaire:

Enregistrer un commentaire