Hi All,
When I use following code to see the session id, it always returns new
session id.
HttpServletResponse response = (HttpServletResponse)
messageContext.getProperty (HTTPConstants.MC_HTTP_SERVLETRESPONSE);
HttpServletRequest req = (HttpServletRequest)
messageContext.getProperty (HTTPConstants.MC_HTTP_SERVLETREQUEST);
HttpSession session = req.getSession (true);
System.out.println ("session.getId: " + session.getId ());
I have to maintain session for a client for around 30 minutes.
I did few things as follows
1. I have already set session scope 'soapsession' in services.xml,
2. Options.setManageSession (true) on client side.
3. in axis2.xml file I am also setting 'ConfigContextTimeoutInterval'
parameter according to need.
But still I don't get same session id to mark that session is being
maintained.
How will it be possible that web service maintains a session?
Kindly send quick response.
I would be highly grateful to you.
Thanks & regards,
Vaibhav Kumar Arya
Associate Software Engineer
===================================================================================================
Private, Confidential and Privileged. This e-mail and any files and attachments
transmitted with it are confidential and/or privileged. They are intended
solely for the use of the intended recipient. The content of this e-mail and
any file or attachment transmitted with it may have been changed or altered
without the consent of the author. If you are not the intended recipient,
please note that any review, dissemination, disclosure, alteration, printing,
circulation or Transmission of this e-mail and/or any file or attachment
transmitted with it, is prohibited and may be unlawful. If you have received
this e-mail or any file or attachment transmitted with it in error please
notify OTS Solutions at [email protected]
===================================================================================================