Hello,
can you please post your code here so, it will be better to understand.
below are the situation under which isNew() will return true.
* the client does not yet know about the session
* the session has not yet begun
* the client chooses not to join the session. This case will occur if the client supports only cookies and chooses to reject any cookies sent by the server. If the server supports URL rewriting, this case will not commonly occur.
hope this will help you.
Thanks,
Dipak
Thanks for the response,
Here is the code after the necessary imports(not giving them because the list is so long)
public class LoginAction extends Action {
public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) {
HttpSession session = request.getSession(true);
System.out.println("Session ::"+session.isNew());
The println statement is returning false.
And this is the first action file of the application no action files r called before this.
Thanks once again.
hi
isNew() methodreturn false when the session created in server
the first request will be return true
another will be return false please thinking for thiswhen the server retriveis the first request from the cilent will be creted the new session
and return the isNew() method is true
?
if you have idea to need excute please post here may be any one have solution for that
thanks