Sessions work now!

Got the sessions to work. Apparently, you can't use
response.sendRedirect("profile.jsp") if you want to preserve session
data. You need to use
request.getRequestDispatcher("profile.jsp").forward(request, response);
Seems convoluted, but it works.