problem with isRequestedSessionIdValid() method
We have a loginTest.jsp as follows
========================================
<html>
<head>
</head>
<body>
Session Id::: <%=request.getSession().getId()%>
<%
if(!request.isRequestedSessionIdValid())
{
out.print("Session not valid");
}
%>
</body>
<html>
================================================== ==============
When we run the following jsp in WebSphere App Server 4.0.7
Iam getting session id alone displayed in the screen. The
isRequestedSessionIdValid() returns true and out.print() method
don't executes.
When i run the same jsp in WAS v5.1.1, Iam getting session id and "session not valid" message in the screen. In this case..isRequestedSessionIdValid() returns false.
Can someone please explain why isRequestedSessionIdValid() method behaves differently in both WAS4.0.7 and 5.1.1 and also do you have more information apart from javadocs on this method?
Thanks in advance.
|