How can I read the discussion from last week about session variables?
Thanks for your help??
-----Original Message-----
From: erik morton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Session variables
Let me try to clear some things up first. What do you mean by "different"
browser?
I will assume that you meant that you created another instance of the same
browser
type (Netscape for example) from which you made the first request.
The servlet container keeps track of sessions by assigning jsessionids to
clients
in either a cookie or a URL parameter. If you have cookies enabled then no
matter
how many instances of Netscape you create, you will still only have one
session
because Netscape shares cookies across the instances. If you were to fire up
IE and
request the same page you would get a new session because you Netscape and
IE do
not share cookies (unless you appended the parameter
jsessionid=<netscapesSessionId> to the url).
There was a good discussion of this late last week.
I would need more information to properly discuss.
Lenin Lopez wrote:
> HI ALL
> I desperatly need your help!!
>
> Here is the scenario
>
> I instanciate a bean 'User' ( which contains user acct, user type, and
> other pieces of information ) and I store a reference to that bean in a
> SESSION variable so I can share that bean among other beans and JSPs that
> need the same information.
> It works fine when I access the information from all the different beans
and
> JSPs.
> However, if a launch a different browser with a different User account
the
> first page uses its own user account. However the following pages SOMEHOW
> get the information STORED in the previous session variable therfore I
lose
> my new account number.
> I thought every browser would create its own session variable,
>
> Any input is greatly appreciated
> Thanks
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
--
Erik I Morton
Software Developer
------------------
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets