on 05-09-2008 9:53 AM
Hi
Does anyone know how to get the portal user associated with a specific session id?
Thanks
Stuart
No satisfactory answer, but I'll find an alternative to what I need to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.)
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
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.