Terminate user session api

I need to write an app that allows a person to identify a user session and terminate it. Also, access manager may be clustered, so I'll need a way to access each machine name to check for sessions.
Could someone point the way to which api methods I should check out?
Thx.

I know AM can do it... but the users won't have direct access to AM... that's why I need to figure out if any of the library API's allow access to that feature.

Similar Messages

  • On Browsers refresh/ back button event   terminate user session

    I have a problem pls help me to solve this.
    Requirement is :
    I need to catch browser's [b]refresh back button event.
    Actually I need to terminate his session/login
    when user clicks on browser's refresh button
    and send user on Login page something like banking application(e.g. ICICI Bank) when u logged in ICICI bank side in between if u click on browser's refresh it shows message "Your session terminated " something like that.
    So i want same functinality after user click on Refresh terminate his session

    in my page i am inserting new data and updating existing data
    so for inserting data againe page get submitted so for inserrion time alos these onload & Onunload events get fired
    i tried this but still proble is unsolved..
    give some more ways to solve this

  • Terminate User Session

    Hi all,
    I'm using FM TH_DELETE_USER to delete a user session, however this will terminate all sessions. Can anyone suggest a system function that will delete a specific user session?
    Thanks, Mark

    Hi ,
    TH_DELETE_USER kills the sessions of the user.But there is no FM to delete the particular session.
    But if you Debug SM50 you get some info.
    i tried it i got this...
         CALL 'ThWpInfo' ID 'OPCODE'   FIELD OPCODE_WP_DEL            
                         ID 'WP_INDEX' FIELD WP_TABL_ALV-WP_INDEX.    
    in this program <b>RSMON000_ALV</b> you can find the code .
    Regards
    vijay

  • Terminate a User session in the Portal

    Hello,
    is it possible to terminate a user session.
    I want to delete a user, but I get the following error log:
    - user delete failed
    - Cannot lock at least one of the 4 locks for the owner
    What is necessary to perform, before I am able to delete the user?
    Thanks for your help!
    Best regards,
    Michael

    Michael,
    I think there is a distinction between deleting a user, and a user session. If you want to delete a users session, object locks must be cleared first. Users, as you know are deleted on UME Admin. On NW2004s the UME Admin is now called Identity Management.
    Regards,
    James

  • Which AM SDK API is used to retrieve user sessions

    Please identify the Java API that I can use to retrieve the status of User Sessions.
    I need to create a report that depends on users that have logged in and not timed out. These are the users listed on the Sessions tab of Access Manager web console.

    Hi,
    You can use getValidSessions(SSOToken, Server) API to get a list of valid SSOTokens. The token needs to be an admin token to get all the tokens. Check the javadocs for the details.
    http://docs.sun.com/source/820-3739/index.html
    shivaram

  • Terminate an User Session.

    I am trying to terminate a User Session that is several months old.  I have tried searching SDN and have not found anything that applies or works.  I have also tried using SM04, SM50, and also SM66 to cancel the process, but have been unsuccessful in my attempts.   The other problem I have encountered when canceling the process is that a new process is started, going from 2 processes to now 4.   We do not have a Basis person as well, and it's been learn as you go and using whatever information I can find.    I am using version 4.7.   Thanks in advance.    If this is not in the correct forum, I ask the moderators to move this post to the appropriate forum as well.   I apologize if I have not been more active in the forums, but due to the economy and downsizing I am the only remaining SAP person here and don't have much time to use the forum as in the past.

    Hmmm... interesting...
    My battle-plan would be to use Sm19 to activate a dynamic filter on the user for all events (particularly system and RFC calls and logins). You can do this even if the log is inactive (RZ11 -> rsau/enable ) but the filter will be kicked out again when you restart the system.
    From there follow the procedure described in SAP Note 495911 to find out what is going on at runtime in the developer trace.
    To lean out the window...:-)  I suspect that it is an external server program which is still running and is buggy to process something. Possibly the GUID function is not performing an existance check and then re-creating the session from the operating system and attempting to process previous session related data again but the program ID for the data which isn't there. Consider yourself lucky that it is not blocking all workprocesses...
    If my guess is correct and there is nothing obvious in ST22, then in transaction SMGW there are also "expert" tracing options to track this down, but be carefull of which one you turn on in a production system. Via the menu you can find them. Search for the option "external security --> logging". It is not very intuitive... The option "Trace up" and "Trace down" is certainly wrong as it will increase the dev trace for all users without telling you which level it is on. (sorry, posting from memory).
    Cheers,
    Julius
    ps: Before using transaction SMGW with "basis" type authorizations, you must read the documentation on the functions!
    Edited by: Julius Bussche on Oct 27, 2010 12:06 AM

  • Java API Failed to authenticate the user session with LDAP

    I have created a Java class that uses the MDM Java Api's it works fine on our Development environment where the MDM server uses its own built in authentication, but when I moved it to our QA environment where MDM use LDAP for authentication its failed with a  'Failed to authenticate the user session'.  Has anyone seen this before?

    hi Dan,
    The java class which u have created that suppose to works fine on MDM server because to execute that program there are no requirement of such protocols, the problem u will face while exporting those program to an client machine
    LDAP(Lightweight Directory Access protocol) connector communicates with the SAP system using RFC and with the directory server using these standard communication protocol.
    so try to select the protocol such that it should help in making connection between the server,direcotryserver and the client machine through which u can execute u r java class using java Api's.
    i hope this will give u an idea to through ur problem.
    regards,
    swapnil

  • How to Terminate the session of a user who is currently editing a program??

    Hi Folks!
    I have a question. If there are no of users working on SAP netweaver system with same username and password. If a user is currently editing a program. How to terminate that session so that can re-edit the same program??
    Thanks for your help.

    Via SM04 or logout yourself and login again. On pop-up window mark correct checkbox.

  • Terminate a user session

    hi,
    iam new to SAP.
    I have a requirement where i need to terminate the session of the particular user when i run a particular program.
    kindly,suggest me if there is any standard function module calling which i can satisfy my requirement.
    Thanks,
    JiA

    Hi,
    Thanks for the reply.
    But i want the particular user session to terminate automatically when i run my program.
    I will try using the std FM mentioned,by passing reqd parameters.
    Thanks,
    JiA

  • Killing a user session through API

    Hi,
    I want to create a procedure for killing user sessions.
    Following is the code
    create or replace procedure kill_session (sess_no number,serial_no number)
    as
    v_sid number;
    v_serial number;
    V_flag char := 'U';
    begin
    v_sid := sess_no;
    v_serial := serial_no;
    dbms_output.put_line(v_sid||v_serial);
    select 'S' into v_flag from sys.v_$session where sid=v_sid and serial#=v_serial;
    dbms_output.put_line(v_flag);
    --exception
    --when no_data_found then
    -- dbms_output.put_line('No session');
    if v_flag ='S' then
    dbms_output.put_line('true');
    execute immediate 'alter system kill session ''v_sid,v_serial'' ';
    end if;
    end;
    It return error : ORA-00026: missing or invalid session ID
    But I am passing valid sid and serial#.
    Again When I am executing
    begin
    execute immediate 'alter system kill session ''64,6677''' ;
    end;
    It works fine. What is the problem,can anyone suggest .
    Regards,
    Neeraj

    Hi Justin,
    Thanks for your reply. I have verified the right number of quotes,still it doesn't work. Please look.
    declare
    2 v_sid number :=42;
    3 v_serial number :=26633;
    4 begin
    5 EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION '' || v_sid || ',' || v_session || ''';
    6 end;
    7 /
    EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION '' || v_sid || ',' || v_session || ''';
    ERROR at line 5:
    ORA-06550: line 5, column 62:
    PLS-00103: Encountered the symbol "," when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod not rem return
    returning <an exponent (**)> <> or != or ~= >= <= <> and or
    like between into using || bulk
    The symbol ". was inserted before "," to continue.

  • Monitoring user session in vCloud.

    Hi,
    How i can get amount user sessions which connecting to Web interface or VMRC?
    Netstat and similar tools show TCP "streams", but one user generate  > 1 "stream".
    If i use AMQP, i can see notification about user login, but no notification about logout.
    I have tried use JMX, API, netstat, but did not reach the result.
    Any ideas?

    The following parameter is set to 0 by default (installation), change it to 1. The following is from the formsweb.cfg file:
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=1

  • Kill User Sessions in Enterprise

    I was told that there was some code here that would allow me to kill user sessions in BOE XI 3.1 SP3. Can anyone point me in the right direction?

    If you have access to Service Market Place, you can search for KB 1468652. 
    It includes the following information, the code snippets are java code, you will just need to convert it to .NET:
    This method was not supported in version XI R2, but it is supported in version XI 3.1.  The steps are:
    1. Retrieve the connection objects using the following query and determine the SI_ID of the connection you want to terminate.
    SELECT SI_ID, SI_USERID, SI_NAME, SI_LASTLOGONTIME FROM CI_SYSTEMOBJECTS WHERE SI_KIND = 'Connection' AND SI_FAILOVER_AVAILABLE_UNTIL = NULL AND SI_AUTHEN_METHOD != 'server-token' ORDER BY SI_NAME"
    Do not delete any connections that use the server-token authentication method as those are used to communicate between servers (e.g. between the page server and cache server).
    2. Once you know the SI_ID, retrieve that specific infoobject and delete it.
    IInfoObjects oSessions = (IInfoObjects) iStore.query("SELECT SI_ID from CI_SYSTEMOBJECTS WHERE SI_ID =" + sessionID);
    IInfoObject oSession = (IInfoObject)oSessions.get(0);
    oSessions.delete(oSession);
    iStore.commit (oSessions);

  • SA520 web access problem, all admin users sessions appears active when it is not true

    Hi, all the users for the management access to my SA520 are blocked via web, all the admin users sessions aparently they seem active, and when i do click on the "continue" button these sessions does not terminate. I guess i have to reset the firewall, but my question is if anybody has the same problem with this device.

    Hi Luis,
    What firmware version are you running? How frequent do you see this occurrence?
    If  possible, when you start to see this issue before all the admin sessions are reporting active,can you provide us the debug logs from your SA  520 so that I can forward to the development  team to investigate?  We are tracking an issue with a customer, but his device takes 3-4 months to show the symptoms you describe.
    To get the dbglog from SA520, login through web UI and in the browser enter the following URL:
    https://LAN_IP_address_of_SA520/scgi-bin/dbglog.cgi        
    These logs will store password, so please remove any sensitive information and passwords. Also if you are not comfortable posting the dbglog on the    community, you can send it directly to me through private message.
    Best regards,
    Julio

  • MTS, Killing the user session?

    My db is using MTS connection, while i kill the user session by using alter system kill session, the ever killed process goes to Pseudo status....even i can't kill from unix level because it uses dispatchers...
    is there any way i kill the user processes in MTS, with out going to pseduo status

    Hi,
    AS ORACLE SAID,
    If an active session cannot be interrupted (it is performing network I/O or rolling
    back a transaction), the session cannot be terminated until the operation completes.
    In this case, the session holds all resources until it is terminated. Additionally, the
    session that issues the ALTER SYSTEM statement to terminate a session waits up to
    60 seconds for the session to be terminated. If the operation that cannot be
    interrupted continues past one minute, the issuer of the ALTER SYSTEM statement
    receives a message indicating that the session has been "marked" to be terminated.
    A session marked to be terminated is indicated in V$SESSION with a status of
    KILLED and a server that is something other than PSEUDO.

  • User session (the right way)

    We are working on an application that needs to have some 'shopping cart' like functionality. For that we need a place to store information in the scope of the user session. When the user navigates away from the application and back again, we now loose all order information that a user already entered.
    Since using interfaces like IScope and IClientSession are strongly discouraged we do not want to use that. Also getting the session from the HttpRequest is not supported.
    I could really use some pointers on how to solve this in a way that is supported by Web Dynpro.

    Boy,
    Did you try the following:
    import com.sap.tc.webdynpro.services.session.api.WDScopeType;
    import com.sap.tc.webdynpro.services.session.api.WDScopeUtil;
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, "ABC");
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, "ABC", "someValue");
    Works only in NW04s, only String values are supported, so you must to serialize/deserialize other types to/from string.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

Maybe you are looking for

  • Events in FI-CA

    Experts can you help me with: How to debug a transaction activating an event in FI-CA? Do you have a how to guide? About debugging a transaction using of the events in FI-CA? Rgs,

  • Iphoto preferences and editing

    I have been trying to edit some of my photos and as soon as the bar with all the editing options appears, it disappears and bring me back to my catalogue. Also when I try to click on preferences, it does not respond, but all the other functions do. W

  • Updating of os from verion 7.10 bundle 1149 to 7.1.0 bundle 2061

    my software was succesfully updated.. but my BBM now is deleted  in my cellphone.. if ill try to download it again in MY WORLD it showns unavailable in your device.. by the way I lived here in UAE.   plsssssssssssssss.... help me with this..........

  • Can't drag using trackpad

    So recently my trackpad on my 2009 macbook pro started acting up. I would constantly have to tighten the little scre in order for my clicks to be registered until my brother had the bright idea of super gluing the screw so i wouldnt move anymore. Bad

  • Region buttons to left side of screen

    Hi, In APEX 4.1 I would like to move my region buttons (like Save, Cancel etc in a Master Detail form) to the left side of the screen, now they're on the right side. Reason: Some reports are pretty wide, so I need to use the horizontal scrollbar to s