-
1
- #1
oricteropo
IS-IT--Management
I am successfully setting a session variable at the URL http:\\localhost:9080\testWeb using the following code:
if (request.getParameter("openReport") != null) {
session.setAttribute("reportName", stringReportName);
}
After the session variable is set I can then view it from anyother page on my site using:
session.getAttribute("reportName")
This same code work's when I use it on the URL http:\\rsc_sza:9080\testWeb (where rsc_sza is the name of my computer) but it seems to expire when I move off of the current page. I need the variable to persist throughout the entire session.
Anyone have any ideas what the problem may be?
Thanks in advance,
Jeff
if (request.getParameter("openReport") != null) {
session.setAttribute("reportName", stringReportName);
}
After the session variable is set I can then view it from anyother page on my site using:
session.getAttribute("reportName")
This same code work's when I use it on the URL http:\\rsc_sza:9080\testWeb (where rsc_sza is the name of my computer) but it seems to expire when I move off of the current page. I need the variable to persist throughout the entire session.
Anyone have any ideas what the problem may be?
Thanks in advance,
Jeff