Re: Fw: how get Session Id from Java Application
randie ursal <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
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