I understand that a JSP session cookie is not persistent. Once all browser instances are closed, the session cookie is gone.
Created May 7, 2012
In the JSP page, I inserted the following:
<%
Cookie sessionCookie = new Cookie("JSESSIONID", session.getId());
sessionCookie.setMaxAge(1800);
sessionCookie.setPath("/examples");
response.addCookie(sessionCookie);
%>
It works great! Remember, the session information is still on the server until it times out (half an hour).