• 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

Problem using session while sending Ajax request to servlet...

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam developing this simple web application where i need to send an AJAX request to a servlet to do some processing on data maintained in the session. But when I send the AJAX request the statement

request.getSession(false);

sometimes returns the right session as maintained and sometime returns null and the pattern is random.

I debugged the application and found that the session id sent with the request is different randomly. I haven't been able to find a good reason. Is it the browser failing to send the right session id, or is it problem with the Ajax request.

Please reply with any solutions.
reply
    Bookmark Topic Watch Topic
  • New Topic