• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session management problem in response.sendRedirect

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am facing an issue which i describe below.

Our application has request flow is like below.

Client -----> Apache HTTP 2.2.3(1) ---->JONAS 5.2.2
in this configuration the response.sendRedirect() is working well,there is no issue of session.

However as per new requirement we have to introduce a new Apache HTTP server in front of JOnAS server.

Client------> Apache HTTP 2.2.3(1) ---> Apache 2.2.3(2)---->JOnAS 5.2.2.

Now the problem starts,the response.sendRedirect() is no more working well. Apache 2.2.3(2) is unable to maintain the previous session.The request.getSession() is creating new sessionId rather than using the previous one.
How ever if we replace the sendRedirect with requestDispatcher.forward() it work's well.I am unable to understand the problem.

Regards,
kamal


 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic