wood burning stoves 2.0*
The moose likes Servlets and the fly likes Where do Session objects live??? Server or Client?? 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 "Where do Session objects live??? Server or Client??" Watch "Where do Session objects live??? Server or Client??" New topic
Author

Where do Session objects live??? Server or Client??

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hello all,
Ive got a simple question.
Where do Session objects live??? Server or Client??
Thanks,
Saj
abhay kulkarni
Greenhorn

Joined: Nov 04, 2003
Posts: 1
Session objects always reside on the server.
Benny Tang
Greenhorn

Joined: Aug 03, 2003
Posts: 26
Hi,
I remember that the session objects are reside on the server-side and the client stores the sessionID, which is used to associate with any session-related information, in the in-memory cookie of the browser.
Benny T
JavaHunk
Greenhorn

Joined: Oct 16, 2003
Posts: 7
Actually, u create a Http Session object in the server, but in turn
the Server send a Cookie to the Client with a
small information about the Session such as session ID.
Therefore every time user requests a page to view, the Cookie
info goes along with the request and the Server reads the Cookie
and identifies the current Session. If Cookie is disabled in
your browser, Session will not work though it is created in the Server
side.
Regards
JavaHunk
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Originally posted by JavaHunk:
If Cookie is disabled in your browser, Session will not work though it is created in the Server side.


Wont URL re-writing do the trick for you...??
This might help.
hth
MB


Malhar Barai
SOA & Java Book
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

True, session rewriting will help. It may also be worth noting that session cookies are typically resident in memory only and disappear when the browser is closed, but they don't have to be
"JavaHunk",
we're light on rules here at the 'Ranch, but two that we quite strict about are our 'be nice' and naming policies.
Unfortunately your display name is not valid. We require your display name to be two words: Your first name, a space then your last name. Fictitious names are not allowed.
Please edit your profile so that you have a valid display name. Accounts with invalid display names get deleted
thanks,
Dave.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where do Session objects live??? Server or Client??
 
Similar Threads
Word Object in Jsp
Calling EJB's or just regular classes
how does the server expire the session
What's Your Favorite Pattern?
all about session