Tomcat, Linux and Session scope.
I have an application running on a Windows Server machine, which I am trying to port to Linux Red Hat 9. Within my application, I set session attributes:
public String perform(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException, Exception {
{
HttpSession session = request.getSession();
....
session.setAttribute("sessionBean", svo);
....
}
and I also retrieve the attributes:
public String perform(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException, Exception
{
HttpSession session = request.getSession();
SessionVO svo = (SessionVO)session.getAttribute("sessionBean");
...
}
The problem is that the attributes stored in the "session" scope are not available when I go to retrieve them. There is no problem on Windows, just Linux. Request scoped attributes work fine on both platforms. Any help or a good steer would be appreciated.
Regards,
Bluespud.
|