Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Not able to handle the HTTP Session

    Posted on

    I'm facing issue on HTTP session on JBOSS 7.3.6. We have deployment as EAR file which has multiple war and jars.

    1.New http session created on each request.
    2. Invalidate the session and after creating the new session. Both session Id same.
    mysession = httpServletRequest.getSession(false);
    mysession .invalidate();
    session = httpServletRequest.getSession(true);
    If i compare both mysession.id and session .Id both are same.

    snippet of Standalone-full-ha.xml

    
                
                    
                
                
                
            
    
    
                
                    
                    
                    
                    
                      
                    
                
    
                
                
    
                    
    
                    
                        
                        
                        
            
                    
            
                
                    
                     
                    
                
                
                    
                
                
                    
                
            
    

    jboss-all.xml

    
    
    50
    
    900
    
    RPTLJSESSIONID
    true
    true
    
    
    COOKIE
    
    
    

    Each war file contain -

    /WEB-INF/jboss-web.xml
    
    
    
    
    
    
    
    

    /WEB-INF/distributable-web.xml

    
        
          
            
          
        
    
    

    Interesting this is there no matter whether distributable tag exist in web.xml. I have tested with and without. Nothing happen.

    Let me know what i'm doing wrong here to handle http session correctly. Please help me here.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat