j***c 发帖数: 2 | 1 I have a login.jsp page and it directs to welcome.jsp page. Inside welcome.jsp
page, it has one link to call struts action and another link to call another
jsp. All jsp and struts are running within the same browser.
However, I debug and find struts one always creates a new session, because I
print out its session id and the id is different from the one in welcome.jsp.
The jsp one still keeps the same session (session id). Weird to me. I am using
tomcat 5.5.17.
Any idea about where I should chec | g*****g 发帖数: 34805 | 2 check api HttpRequest.getSession() and getSession(boolean),
also make sure the session expire period in web.xml is not too short.
jsp
another
.
using
【在 j***c 的大作中提到】 : I have a login.jsp page and it directs to welcome.jsp page. Inside welcome.jsp : page, it has one link to call struts action and another link to call another : jsp. All jsp and struts are running within the same browser. : However, I debug and find struts one always creates a new session, because I : print out its session id and the id is different from the one in welcome.jsp. : The jsp one still keeps the same session (session id). Weird to me. I am using : tomcat 5.5.17. : Any idea about where I should chec
| m******t 发帖数: 2416 | 3
jsp
another
Are they running in the same _web application_ is the question. Also can you
post how you form the link to call the struts action in welcome.jsp?
【在 j***c 的大作中提到】 : I have a login.jsp page and it directs to welcome.jsp page. Inside welcome.jsp : page, it has one link to call struts action and another link to call another : jsp. All jsp and struts are running within the same browser. : However, I debug and find struts one always creates a new session, because I : print out its session id and the id is different from the one in welcome.jsp. : The jsp one still keeps the same session (session id). Weird to me. I am using : tomcat 5.5.17. : Any idea about where I should chec
|
|