Hi!
Try this out:
HttpSession httpSession = httpservletrequest.getSession(true);
String httpSessionId = httpSession.getId();
String sessionId = String.valueOf(httpSessionId);
You should pass the session id to each of the subsequent links in the
application. That way you identify a unique request. As soon as the user
logs
out the session should be destroyed.
Hth,
Manish
Balasubramanian S wrote:
> Hi
> I need help from u .Iam using the servlets
> Iam planning to keep track of session throughtout my application
> I have used HttpSession session = session.getSession(true)
>
> But for me it is not working for me .Please help me How to maintain
> the session throught out application
>
> Cheers
> bala
>
>
___________________________________________________________________________
> 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
--
+----------------------------------------------Live-Your-Dream----+
Obstacles are things a person sees when he takes his eyes off his goal.
-E.
Joseph Cossman
___________________________________________________________________________
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