• 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

request/session variables management

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody explain to me in simple technical terms, when someone says: request/session variables management, what does he really mean? Please go easy on me, I am a newbie. Thanks.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Sun Servlet Tutorial will do a much better job explaining than I might. But here's a short answer ...

When an HTTP request comes into a Servlet container, the container builds a Request object and calls your Servlet. You can get a lot of nifty information about the request - parameters, posted data, the client's address, headers, etc.

The HTTP protocol doesn't have any provision for the server to remember anything about the client from one request to the next. The Servlet spec adds the Session object for that. You can create one, save information on it during one request and get that information back on the next request. The "management" part is probably talking about being careful to not put too much on the Session or leave it there too long ... if you have a zillion users it can eat up a lot of memory.

Read the tutorial for a more thorough description of things. The "Head First Servlets" book is also recommended.
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic