Hi!
It
depends on your requirement,
The
various ways in which you can manage the
session
1)
use the
HttpSession class
2)
use
cookies for session management
3)
use
hidden variables for session management.
As far
as I know from my experience opening the different browser window in the same
session does not affect the session
variables,
However
if a user opens a different instance of a browser then there is a
problem.
Regards,
Tarun
Tarun Matai,
i-flex solutions
ltd,
Pune. Ph No: 020-5663221 to 9, ext: 209
Hello,
I have several question about using
HttpSession (javax.servlet.http.HttpSession) for storing request information.
1. Is it a good idea to use HttpSession to
store information about user request? If not, what are the alternatives? The
problem is that the request contains a little bit more information, than I
want to pass in parameters to the servlet.
2. Are there any ways of distinguishing
sessions from different browsers from the same user? The problem is: if we use
HttpSession to store request parameters and the user decides to open one
more browser window and change the request parameters in the second window and
then return to the first window to perform request, the information about
request is not going to be correct.
Thank you for your attention,
wishing good luck in developing
servlets,
Nadya
|