This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes about sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "about sessions" Watch "about sessions" New topic

about sessions

sureshreddy puli

Joined: Sep 28, 2005
Posts: 29

I am new to servlets.Please tell me the difference between


And exactly the need of thees three.That is when should i use each.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Refer to the servlet specs.
There is no other better substitute.
[ October 05, 2005: Message edited by: Adeel Ansari ]
Scheepers de Bruin
Ranch Hand

Joined: Jul 19, 2005
Posts: 99
These attributes are accessable and usable throughout the life of the web application, and is shared by all sessions (a session starts when the app receives the first request from a user, and ends when they log off, close their browser, or the session expires i.e.the server does not receive requests from the user for a preset time).

These attributes are accessable and usable throughout the life of a session.
They are isolated from other sessions (i.e. one user's session is completely seperated from anothers)

These attributes are only valid and usable for the duration of one request (i.e. from the user requests some url, until the server has finished responding)
[ October 05, 2005: Message edited by: Scheepers de Bruin ]

We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: about sessions
Similar Threads
Cant use object from another class
WA #1.....word association
Posting to bump up my count...
Text box value is not being completely filled with request attribute
The x900 effect ?