I am loosing session variables between JSP applications running on Tomcat 5.0.18.
The first app is a login application which defines a menu for the user. It's path is 127.0.0.1:8080/Security. When the user logs in successfully, I set a session variable session.setAttribute("UserID", "Smith5646" If I check this variable later in another JSP page in the /Security directory using session.getAttribute("UserID" it returns Smith5646 as expected.
When the menu is displayed from /Security and I click a link that goes to another path such as 127.0.0.1:8080/MyTestApp, when I do a session.getAttribute("UserID" it returns null.
Are session variables path specific? I thought they were global to the browser session but this does not appear to be the case. Is there a tomcat config setting I've missed or something? If not, is there a way around this so I can pass session variables between applications?
The first app is a login application which defines a menu for the user. It's path is 127.0.0.1:8080/Security. When the user logs in successfully, I set a session variable session.setAttribute("UserID", "Smith5646" If I check this variable later in another JSP page in the /Security directory using session.getAttribute("UserID" it returns Smith5646 as expected.
When the menu is displayed from /Security and I click a link that goes to another path such as 127.0.0.1:8080/MyTestApp, when I do a session.getAttribute("UserID" it returns null.
Are session variables path specific? I thought they were global to the browser session but this does not appear to be the case. Is there a tomcat config setting I've missed or something? If not, is there a way around this so I can pass session variables between applications?