Hi Casey!
>Hey folks :
>
> What goes in a cookie in JSP? Where can I find and look at the contents
If you use Netscape you have an option to let netscape ask before
accepting a cookie. The content of the cookie is displayed in
the popup window then.
>of a cookie file on my client machine?
> For example... Test.jsp uses a bean called beanie.class to store
>general data about a user. The bean has session scope. Are the
>member variables of beanie being collected into a bean and transferred
>to the client? If so, when does that transfer happen? How can I decide
It's not the cake, just a cookie ...
A cookie is a small key=value pair. If its used for session
management a small unique string is generated representing your
session. This session key is used to as a key to get data stored
with session scope on server side.
>what data goes into a cookie and what doesn't?
If you just use sessions its just a unique created string and nothing
from your data.
>
> Also, I know this question has been asked before, but I think it still
>needs
>to be looked at more...
> Consider a system at a moment where there are 10 simultaneous user
>connections
>(10 users hitting the web server with HTTP traffic at that moment) and 30
>simultaneous
>user sessions (active sessions which have not timed out but are not
>necessarily hitting
>the web server at the moment). How many beanie beans will be created (in
>general,
>a ballpark figure, regardless of server environment)? Will they continue to
30
>exist in memory
>or will they be serialized to disk?
Depends on the server, I guess normally they will stay in memory,
so keep them small and use these beans as proxies to real data somewhere.
>
> And, if this question isn't already long enough... what changes when I
>use
>application scope? Does an instance of that class stay in memory
>constantly?
Yes, one instance per application, so in your case: one instance.
>
> Casey
>
Ciao,
Carsten
[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html