isn't the session id automatically included on the response parameter
from my servlet to the java app client?
because if it is automatically included i might as well just access the
response parameter name, in order for my java application to get the
session id generated by my servlet, i just don't know the parameter name
to use.
but if not i guess i have to include it into the http-header during the
response, im i correct?
thanks.
Shinichi Nakanishi wrote:
Hi Randie,
I don't know what you want to do but let's say your Java application is
accessing to your servlet through http.
You can write the session id into http-header or something using getId(),
which is a method of HttpServlet as other people also mensioned.
I hope it helps you.
Shinichi
On Tue, 4 Feb 2003 12:37:30 +0800
randie ursal <[EMAIL PROTECTED]> wrote:
i want to get this session id on my Java Application not on
my Servlet. How would i know the response parameter name to get so that
i will get the value of the session id? does the Servlet automatically
include the session id during its response to a client request?
thanks.
ramachandra wrote:
Hi Randie,
Use getId() -- which is a method of HttpSession interface for
getting the sessionId created by your servlet. Every session created by
the server has a unique 'id' associated with it in order to identify this
session from other sessions. This method returns the 'id' of this session.
U can use this in your cade as follow for getting the id:
HttpSession ses=req.getSession(trur);
ses.getId();
Regards,
Ram
----- Original Message -----
From: randie ursal <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 6:54 AM
Subject: how get Session Id from Java Application
hi,
what is the response parameter key to access from my Java Application
to know the session Id created by my Servlet?
thanks a lot.
randie
___________________________________________________________________________
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
--
Randie V. Ursal
Design Engineering Department
NEC Telecom Software Philippines, Inc.
office : +63(032) 233-9142 (loc.3119)
mobile : +63(0917) 467-8244
email : [EMAIL PROTECTED]
___________________________________________________________________________
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
Shinichi
___________________________________________________________________________
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
--
Randie V. Ursal
Design Engineering Department
NEC Telecom Software Philippines, Inc.
office : +63(032) 233-9142 (loc.3119)
mobile : +63(0917) 467-8244
email : [EMAIL PROTECTED]
___________________________________________________________________________
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