Hi,
Once a servlet is loaded, how long can i expect it's life span to be ? When exactly will the servlet instance be removed from the memory ? Coming to the design aspects, in this scenario, is it better to have a single servlet taking care of all transactions (roughly in each HTML forms) or to have individual servlets serving individual transactions or forms ?
Thanks,
Mohan
-----Original Message-----
From: Nic Ferrier [SMTP:[EMAIL PROTECTED]]
Sent: Friday, September 10, 1999 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Stateful servlets?
>>> "Sundaram, Mohana" <[EMAIL PROTECTED]> 9/10/99 4:10:41 PM
>>>
>If a servlet is going to server many concurrent users,
>how do i keep track of each individual user
>and his session information within the servlet
You don't need to... the server does this.
All the servlet has to do when a request comes in is ask the request
if it has an associated session.
If it does you can get full access to the session details.
> - know when he logs off and
You don't know when a user logs off because a user may not have
"logged on" to create the session.
Sessions are not primarily a security feature, they just help
servlets maintain state between http requests.
>Thanks,
>Mohan
Hope it helps.
Nic Ferrier
Tapsell-Ferrier Limited
http://www.tapsellferrier.co.uk
"Use Ockham Luke"
___________________________________________________________________________
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
