Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client/browser

 
Kannan Raju
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The page# 199 of HFSJ book says that "The client could open a new browser window! So the container can still use the same session for a client".
But, in the earlier chapter it said that the browser is the client.

I am confused whether the computer or the browser the client?

Thanks
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kannan Raju:

But, in the earlier chapter it said that the browser is the client.


So is this time! The browser is the client.
 
DINESH MISHRA
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Talking in terms of hardware client is the machine which is establishing a connection to the server machine with the servlet container thru HTTP.

Talking in terms of software, browser is the client which is communicating to Web Server thru servlet container.

Talking in terms of users of the web application, users are the client of the web-application who log on to the web server to get its services.

Hence the client-machine, browser and user are synonymous with the client.


Regards,
Dinesh Mishra
SCJP 1.4
 
Sumeet Raheja
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
New Session is created when you click on IE icon and new Window opens , If new window is open from the existing window by file->New->Window It has the same session as of parent window
 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the response from Sumeet seem correct.
I understand it is at the cookie level that the sessions are being controlled.
Basically when a page is requested from the server, the JSESSIONID is passed, and on the server side the JESSIONID is checked for being valid.

If not, that means the session no longer exists due to 2-3 reasons.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic