cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Check session ID

StefanRoesch
Active Participant
0 Kudos
1,427

Hello there,

for a special locking thing i need the possibility to store my own BSP session ID in a table and to check if sessions of other users have expired/terminated.

How can i get my own session ID ?

How can i check if a session ID is still activ ?

thanks for any help,

Stefan.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Stefan,

Check these links:

[Link1|]

[Link2|https://forums.sdn.sap.com/click.jspa?searchID=24659551&messageID=1297096]

Hope this helps.

Regards,

Abhinav

StefanRoesch
Active Participant
0 Kudos

sorry, can't find a hint, how to check if a session-id is still active...

RieSe
Contributor
0 Kudos

Hi,

in the case of stateles session, you will have no chance to get this information. You have to implemented your own logging. In the case of statful applications, the function module

TH_USER_LIST provides exactly this info.

If you use the system login scenario by SAP (->SICF), you can do it as in class

CL_ICF_SYSTEM_LOGIN-

Best regards, Stefan

StefanRoesch
Active Participant
0 Kudos

Unfortunataley I don't have a class CL_ICF_SYSTEM_LOGIN here on my 6.20 release.

Maybe thats also the reason why the result of function call TH_USER_LIST does not contain the session-ID infomation here?

anyway thanks so far

Former Member
0 Kudos

Hi Stefan,

How can i get my own session ID ?

RUNTIME->SESSION_ID has the sessionid.

Regards,

Anubhav

StefanRoesch
Active Participant
0 Kudos

RUNTIME->SESSION_ID has the sessionid.

thanks a lot for that - anyone knows how to check if a session-id is still active?