Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jodon Brown   on Jun 11 In Java Category.

  
Question Answered By: Salvatore Kelly   on Jun 11

Example String username=request.getParameter("username");
you can create session  with session.setAttribute("username",username);
in the welcome page, you can use if (session.getAttribute("username",null){ RequestDispatcher.getRequestDispatcher("login.jsp").forward(request,response); }
to remove session, session.removeAttribute("username");

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Problem With Tomcat Session Object Or get search suggestion and latest updates.


Tagged: