2
Answers

session in jsp

how to maintain session through jsp ?
Answers (2)
0
Gopi Chand

Gopi Chand

NA 13.1k 644.5k 10y
Just write the code given below in your jsp file: <% HttpSession hs=request.getSession(); String u=(String)hs.getAttribute("aUser"); if(u==null) { response.sendRedirect("index.jsp"); } %>
0
JobPencil

JobPencil

NA 60 0 10y