I would like to know how to make use of session to apply in my jsp pages.
My login.html page contains the session codes as follows:-
Expand|Select|Wrap|Line Numbers
- <%@page import="java.util.*"%>
- <String str = request.getParameter("UserID"));
- session.setAttribute("UserID", request.getParameter("UserID"));%>
- Welcome to <session.setAttribute("UserID").equals("")){%>
- <ahref ="login.jsp""><b>Login</b></a>
- <%>}
Now, if this person has login before, I assume that the programme will store the value objects somewhere right? If yes, where is the value objects store?
When the person go to another page, and since the user has logged in before, so no need to do the re-log in. How do I incorporate the session object in another page so that this person doesnt need to re-login.
Advice on the above is greatly appreciated.