JBADRI wrote:
>
> Hi,
>
> WE created a sesion object in the servlet and generated an Id.
> When we run two sessions of the browser on the same PC, the session object
> generates the same Id.
> But when two browser sessions are running on two different PCs then it
> generates unique Ids.
>
> Is this the way this is supposed to work? Any help is welcome.
In general, yes. Just because you open two browser windows does not mean you
have started two sessions as recognized by the server. In general, two browsers
running on the same computer will share the same environment, so when you click
a link or a button, the two browsers will send the same session id back to the
server.
There may be exceptions. Here are a couple of untested ideas.
- Netscape allows you to create separate profiles for users, and if you start up
the browser for different users on the same pc at the same time, that might
create different sessions.
- Another possibility is if the browsers don't allow cookies and you use URL
rewriting to store the session id, it might be possible to create a situation in
which the two browsers ended up with different sessions.
But as a general rule, session id corresponds to a terminal, not to the browsers
running on the terminal.
Kevin Mukhar
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html