Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpSession session = request.getSession();
- if (session.getAttribute("first_name") == null) {
- String firstName = request.getParameter("first_name");
- session.setAttribute("first_name", firstName);
- response.getWriter().append("Session created !");
- } else {
- response.getWriter().append("Session exist !");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement