cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a session number

Former Member
0 Kudos

Hello All,

I'm doing a development using PDK SP14 and I need to get the value of the current session. Anybody have an idea how to het that value?

Thanks in advance

Alexis

Accepted Solutions (0)

Answers (1)

Answers (1)

kishorg
Advisor
Advisor
0 Kudos

Hi Alexis,

From the IPortalComponentSession , use the getHttpSession() method to retrieve the HttpSession.

In this HttpSession , we a have method

getId() , which returns the ID of the current session.

use getCreationTime() to get the created time of the session. in most of the cases also use this as the current session ID.

Refer these links...

http://portal.dk.issworld.com:50000/irj/portalapps/javadocs/runtime/com/sapportals/portal/prt/compon...

http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpSession.html

Regards

Kishor Gopinathan