How to trigger a BAPI where user session expires

Is there a way to write custom code (server side) when the user -
1. Logs off
2. Session Times out
3. Browser crashes?
Any standard EPCF event/code that I can use?

I would start with javascript and using the "onExit" etc. events. You can use this to trigger an iview, which calls the BAPI.
For browser crashes, the only way (to my knowledge) is to write (very tedious) a "session watch" job, that watches for timed out sessions that are not detected by the browser.

Similar Messages

  • How to do something before the user session expires

    Hi,
    I need to do some extra cleanup (delete some rows from database, etc) before the session of a user expires.
    I tried to do it with Phase Listeners, but haven't figured out how to put it on the session, I guess I need a kind of Listener.

    Can implement ServletContextListener to fire off events on context destroy.
    example.
       public class LifeCycleServletContextListener
          implements ServletContextListener {
          public LifeCycleServletContextListener() {
          public void contextInitialized(
            ServletContextEvent sce) {
             System.out.println(
               "LifeCycleServletContextListener:
                   contextInitialized");
          public void contextDestroyed(
            ServletContextEvent sce) {
             System.out.println(
               "LifeCycleServletContextListener:
                   contextDestroyed");
       }

  • How to trigger email notification when users fail to reset your password in fim 2010 r2.

    Hi,
    how to trigger email notification when users fail to reset  your password in fim 2010 r2
    Regards
    Anil Kumar

    Hi Sylvain,
    I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
    check Advance View of Set this gives
    <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
    xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
    But this is not working for me so please tell me where i am wrong.
    Regards
    Anil Kumar

  • How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2

    Hi,
    How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2
    Senario:I want put wrong answering to the Questions that i was during registration if i give wrong answers to the questions then a Email Notification should be trigger to Users.
    Regards
    Anil Kumar

    Hi Sylvain,
    I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
    check Advance View of Set this gives
    <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
    xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
    But this is not working for me so please tell me where i am wrong.
    Regards
    Anil Kumar

  • How to trigger a bapi

    hi,
           I have created one Bapi like zbapi_kumar. Now how to trigger that BAPI into
    our Z Program.. Please explain me how to use that..
    Regards,
    Kumar

    Check the link -
    Re: BAPI Help needed
    Regards,
    Amit
    Reward all helpful replies.

  • How to grab the total # of user-sessions?

    Hi everyone,
    Looking through the javax HttpServlet interface, I didn't see any way to capture the total number of current user sessions on the server.
    Is there a way to do with without setting any sort of variable counter? Ie, session.setAttribute("counter", x+1);
    Thanks!

    You could use an HttpSessionListener to know when they are created and destroyed and keep the cound in the application scope.

  • How to use call back and user session id based conversation with web service in weblogic 6.1 sp2 ?????????

    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K, and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and book the
    deal ( sending a JMS message to a Queue, a MD will pick up and do the work,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, do I
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second question above,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

    Any comments ?
    mark
    "markhu" <[email protected]> wrote in message
    news:[email protected]..
    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K,and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and bookthe
    deal ( sending a JMS message to a Queue, a MD will pick up and do thework,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, doI
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second questionabove,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

  • How to trigger event when changing user status?

    hi,
    I'm having problems in triggering my workflow.
    In CIC0, When a status of a service request is changed to 'solution provided' then after saving service request, it should send a notification mail. I'm using ZBUS200116 which is deligated to BUS2000116. I've created event 'change' in ZBUS200116 which is in the start events of my workflow.
    I've tried creating an action profile which uses my workflow. The action profile is attached to the transaction but still it doesn't trigger my workflow.
    i've checked other existing workflows which uses the same object type BUS2000116 or ZBUS200116. These workflows were triggered by 'created' and 'completed' events only. Other added events in ZBUS200116 like 'changed' is not triggered. How is this possible when ZBUS200116 is deligated to BUS2000116?
    Your response would be highly appreciated.
    Thanks in advance.

    hi juan
    so here we are,now i got complete understanding of what u r doing and why
    you know you need not have created that change event because it wont serve your purpose anyway
    the reason is that because the way process in your workflow is flowing ,it wont happen that way using change event
    you just follow these  steps:
    1, use created event in your workflow
    2. that way when your contract ios created in rpocess status the event will be triggered only because you are creating a transaction whatever may be the status,so in all such cases you should use event created.
    3. now coming to the point of change in status or documents in contract
    in this case using loop will put you in deadlock and you will only be haing the error in such case
    you use WAIT step instead ,inside it use wait using conditions out of every option
    there you give your condition as change in whatever status
    like if you are chaning the status from in process to some other status ,put that status inside the condition
    as soon as that conditioon is met ,the WAIT step will be executed,
    that way you will be able to trigger the change in status through thje workflow
    so thats the solution with the approach you are using
    there are many approaches you can follow in workflows ,so depending upon that you can follow the different worlkflow tools u have there.
    also remember when your wait step gets executed there is always the time lag of 20-25 minutes after which changes will be reflected
    hope it will solve ur probs
    best regards
    ashish

  • How to check user/session generating a lot of archivelogs?

    Hi,
    On a 10g database, How do i look for the user/session that is generating a lot of archivelogs?
    thanks in advance,

    For currently connected sessions, you could query V$SESSTAT (joining to V$STATNAME). Thus,
    select s.sid, s.value
    from v$sesstat s, v$statname n
    where s.statistic#=n.statistic#
    and n.name = 'redo size'
    order by 2
    /However, there are a few complications :
    1. Persistent Sessions will show up with very high statistics, simply because they haven't disconnected. Many applications maintain Persistent Sessions for either of
    a. Monitoring and Running User Submitted or ScheduleD Jobs (eg in Oracle EBusiness Suite or Peoplesoft)
    b. Connection Pooling
    2. Sessions that have already disconnected will not appear in your report.
    Therefore, you'd have to "sample" sessions frequently and find the incremental redo size. Then, another complication hits you :
    c. Oracle reuses Session IDs. Once a session disconnects, another connecting session may get the same SID. It wouldn't get the same SERIAL# immediately so you might want to use a combination of SID+SERIAL# from V$SESSION as your key (you'd have to add V$SESSION into your monitoring query) Even then, I wouldn't guarantee that the pair wouldn't repeat after some time, particularly with instance restarts.
    You'd be better of using AUDSID from V$SESSION as that value is incremented (and not reused) by session auditing.

  • How to know user session time

    Hi,
    I want to know how to know or calculate the user session time till now from the time when user got connected
    in simple current_time-begin_time.
    thanks in advance

    Try using the logon_time of v$session
    test@>desc v$session;
    Name                                                  Null?    Type
      LOGON_TIME DATE All columns of the view have not been displayed.
    Adith

  • Daily report for user sessions in oracle10g database

    I would like to genarate the daily report for user sessions in oracle10g database
    daily report of how many of sessions present in oracle database for each user

    Thanks for link ( I know you always post the oracle document link here)
    But I am expecting scripts( someting like logon trigger and logg off trigger) to genarate the user session report.

  • Cpu used by a user (session wise)

    how will i find how much cpu used by a user(session wise)

    select a.sid, a.username, a.osuser, c.name, b.value
    from v$session a, v$sesstat b, v$statname c
    where a.sid = b.sid
    and b.statistic# = c.statistic#
    and (c.name like '%CPU%' or c.name like '%sorts (memory)%' or c.name like '%table scan%' or c.name like '%commit%' or c.name like '%cursor%' or c.name like '%read%' or c.name like '%buffer%' or c.name like '%cache%')
    and b.value > 0
    order by a.sid, c.name
    Just revised version of previous query / reply.
    Regards
    Girish

  • Why user sessions are frequently blocked?

    from the time that we did a database migration from oracle 8i to oracle 9i, and the application to developer 6i we have faced a new problem, ' the user sessions are frequently blocked'
    anybody have any idea? it is a database parameter that must be changed?...
    thnx,

    Hi,
    Since it was a migration from oracle 8i to oracle 9i, your performance is suppose to increase rather than decrease given condition that hardware and oracle configuration does not change.
    How did you figure out that user sessions are frequently blocked?
    You can query v$session_wait and check why it is blocked/waiting?
    You can query v$locked_object to check if it is blocked for lock on some other objects?
    Regards

  • SJSAS 9 and JSF - session expiration

    Hi
    I'm developing JSF (1.2) application. I'm using SJSAS 9, EJB 3.0 and toplink. My problem is session expiration. When user session expires and then user click for example on Save button on JSF form, application goes to login page, but after login user receive Internal server Error screen. As I see, session expires but after login, POST request is resend but all related objects don't exist any more (NullPointerException occurs in prerender method). Currently I'm redirecting to main page using following code:
    public static ExternalContext getExternalContext() {
            return FacesContext.getCurrentInstance().getExternalContext();
    getExternalContext().redirect(MAINPAGESTR);
    ...in try catch block ,in prerender method (JSF). Does anybody knows what should I do?

    Have you tried to set a servlet filter to catch the error and build a nicer page?
    If you can tell me how to set up a short session expiration time on Tomcat,
    I can do the tests.
    I am interrested in this issue as I will have to solve it for a project in the
    next 2 weeks.

  • Session expires when servlets are reloaded

    Hi
    I'm using Sun Java System Web server 7.0 on Windows 2003 server. When I update my servlets the session expires. I update the .reload filen and the servlets reloads perfect, but my users session expires.
    Is it posible to reload servlets without session expires ? And how do I do that ?
    Regards,
    Stian Martinsen
    Norway
    Edited by: StianNorway on Sep 14, 2007 3:59 AM

    I don't know about Sun's server but with Tomcat, if you are careful to make sure that every object bound to session (directly or indirectly) implements java.io.Serializable, Tomcat will save all your session information to disk when the application restarts so they are all live when it comes back up.
    Read the documentation for your server and see if it has a similar feature.

Maybe you are looking for

  • Unit Testing  - Results greater than 0

    I am unit testing a PL/SQL function. The function has no inputs and one output (Interval Day to Second) . The output is the time it takes to run a query therefore a valid value for the output would be greater than 0. When I setup the test the result

  • BEx analyzer 7.0 Report for last 3 months and current month

    I need to create a report for a key figure (net value) and character (material), 0calday Output format: column1 : net value - previous year column2 : net value - current year column3 : net value - current quarter (separate columns for 3 months) colum

  • X-Fi Mode Switcher won't work in XP non-admin accou

    I have installed X-Fi extreme music on my WinXP SP2 machine. Both audio console and the graphical console launcher/mode-switcher won't work properly in non-admin accounts. It will be "stuck" in one mode and whatever I do, it refuses to change to anot

  • Pearl with gps and wi-fi

    hiya, does anyone know a way to get both gps and wi-fi in a pearl?  gps or wifi addon/card to supplement the missing feature in one of the current pearls? just wait and see if they ever do it?  thanx, bradt

  • Anyway to smooth out a progress bar?

    I'm using a Timer with an event to update data on a page.  I'm also using a progress bar to indicate the next update (every 30 seconds).  Currently I'm using a manual progress bar with setProgress() to increase the value by 1 (max value 30) every sec