Dear Servlet-Interest users,
I am having problems with session management.
What I am doing is as follows:
In one class I have:
HttpSession mysession = request.getSession();
System.out.println("I am adding.");
mysession.setAttribute(PROTOCOL, prt);
mysession.setAttribute(ACCOUNT, prt);
response.sendRedirect(authenticatedURI);
The response.sendRedirect sends it to another page. I have another class where I try to retrieve the Protocol object using:
HttpSession mysession = request.getSession();
prt = (Protocol) mysession.getAttribute("PROTOCOL");
System.out.println(prt);
The output of the println statement is "null".
My browser version is Internet Explorer 6.0 and I have enabled the cookies.
Is there something that I am doing wrong?
Furthermore, can someone point me to a sample example where they use URL Rewriting? I could try to incorporate that and see if it works!
Thanks for all the help in advance!
Sincerely,
--Andy.
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now