What you have to do is create sessions using the HttpSession Class of jva
servlets
This is for setting the session
HttpSession session = req.getSession(true);
session.putValue("variable name",value);
While receiving the session
login = (String) session.getValue("variable name");
But this mechanism only works when cookies are enabled . Else you have to
use URL rewriting or hidden fields
The sessions can be killed by the setting the time.
All this is explained well Java Servlet Programming by Jason Hunter.
Nimesh
-----Original Message-----
From: Rajal Shah <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, February 27, 1999 11:47 AM
Subject: Servlet sessions per user login?
>How would one recommend using servlets which could have session per user
>login? Currently I use NSAPI to spawn a separate process per user login.
>Each process is killed after 2 hours of it's inactivity.. I'd like to
>switch over to Java servlets.. Does servlet sessions allow me such a
>functionality?
>
>Also, do servlets stand the test of having 1000 sessions (for 1000
>users)?
>
>Sharing past experience in doing such a thing would be a big help!
>
>--
>Rajal
>
>___________________________________________________________________________
>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
>
___________________________________________________________________________
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