• 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

Applet failing to send HttpSession

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an applet opening a connection to a servlet, sending it a Table object. The servlet gets the
HttpSession object to allow the Table data to be stored for the appropriate client. This arrangement
has worked for a long time. I assumed that the: new URL(applet.getCodeBase(), servlet_path).open.Connection
was providing the HttpSession object.

Recently, request.getSession(false) is returning null. However, the applet is still sending valid Table data.

My question is am I making the correct assumption as to how the applet provides the servlet with the session object?

Settings:
connect.setDoOutput(true);
connect.setUseCaches(false);

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The client does not send a HTTPSession, it sends a request header containing the unique id of the session. The session object is maintained by the servlet container.

Therefor you should be looking at the request headers sent by the applet.

Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic