cancel
Showing results for 
Search instead for 
Did you mean: 

Get portal user from session id

Former Member
0 Kudos

Hi

Does anyone know how to get the portal user associated with a specific session id?

Thanks

Stuart

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

No satisfactory answer, but I'll find an alternative to what I need to do.

Former Member
0 Kudos

Hello,

The user is provided via the servlet request object: http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpServletRequest.html#getUserPr...

Kind regards,

Tsvetomir

Former Member
0 Kudos

Hi

Thanks for your answer... unfortunately it's not what I'm looking for.

What I would like to do is find out which user is using a specific SessionID. In other words... I would like a method that can accept a SessionID as a parameter and return the username of the portal user that the session relates to.

Or even better, I'd like to find the table from which I can retrieve active session information (e.g. Session ID, IP Address, Username, Session Start DateTime, etc.)

Former Member
0 Kudos

Hi,

If we provide such method, this would be a security hole.

But you can list the HTTP sessions in the telnet console. For every http session you can see the create time, last access time, user ID, the session ID, and the application. The telnet command is in the group "servlet_jsp" and the command is "http_session full".

Here is an example:


# jump 0
# add servlet_jsp
# HTTP_SESSIONS full
UserName | SessionId | Created | LastAccessed | Expire | Application
-------------------------------
user not logged in | (J2EE109510100)ID1360280651DB10383836693550970025End | 17:0
2 09/05/08 | 17:02 09/05/08 | 17:32 09/05/08 | sap.com/irj

-------------------------------
Total number of http sessions: 1

Kind regards,

Tsvetomir

Former Member
0 Kudos

Hi

Thanks for your help... unfortunately Telnet doesn't really help me in this situation.

BTW... providing this information would not be a security hole.