AsyncWeb HttpSession Issue...
-----------------------------

                 Key: ASYNCWEB-42
                 URL: https://issues.apache.org/jira/browse/ASYNCWEB-42
             Project: Asyncweb
          Issue Type: Bug
          Components: Server
    Affects Versions: client-1.0.0
         Environment: Java 1.6, Windows 2008 server
            Reporter: Ajay Tomar


I am facing an issue related to HTTP session implementation in AsyncWeb server. 
 Whenever I try to get the HttpSession Object from handleRequest 
(HttpServiceContext context) method of Service class, AsyncWeb is creating new 
HttpSession object for every request.

HttpSession session = context.getSession(true); (or) HttpSession session = 
context.getSession();

On debugging I identified that AsyncWeb is forcefully creating a new session 
for every request in server code.

If I try to get the HttpSession using contxt.getSession() or 
context.getSession(true), it will invoke the getSession(HttpServiceContext 
context, boolean create) method of 
org.apache.asyncweb.server.session.DefaultSessionAccessor java class. If I see 
the implementation of getSession method it will internally invokes the 
getSessionKey (HttpRequest request) method of 
org.apache.asyncweb.server.session.CookieIdentifier class. getSessionKey method 
tries to extract the session cookie supplied with the request if any. 

But AsyncWeb is unable to find any cookie with the name "sessionKey" and 
returning null for each request. Session cookie is null so getSession method 
returning new HttpSession object every time. 

Please help looking into the problem. Let me know if you need any other 
information.

Thanks,
Ajay



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to