Problem with session.isNew()

hi,I have created a session in the servlet even before the session is being used or any other sessions were created it was returning false for session.isNew(); why ? can anybody please tell me the answer.Thanks in advance.
[243 byte] By [subhakarkatamaneni@yahoo.co.ina] at [2007-11-27 4:03:00]
# 1

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

dipak66a at 2007-7-12 9:07:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

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.

subhakarkatamaneni@yahoo.co. at 2007-7-12 9:07:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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

javaskilleda at 2007-7-12 9:07:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...