How to kill the session after the user exit the ADF application

Dear all
I have a problem
The problem is the session still exist after the user close the application and the browser. I want to kill all sessions that is not active.
This is my test scenario:
1- I open IE and run my ADF application that is deployed on weblogic. http://192.168.100.17:7001/myapp/faces/login
2- At the same time I issue this SQL command to view the sessions for user 'ADFUSER' - the "ADFUSER" is the schema user.
SELECT USERNAME,STATUS FROM v$session
WHERE USERNAME = 'ADFUSER';QUERY RESULT IS
USERNAME                       MODULE                                           STATUS
ADFUSER                         JDBC Thin Client                                 INACTIVE3- Now the user close the browser
4- Run the SQL again and I notice that the session still exist
SELECT USERNAME,STATUS FROM v$session
WHERE USERNAME = 'ADFUSER'RESULT:
USERNAME                       MODULE                                           STATUS
ADFUSER                        JDBC Thin Client                                 INACTIVE5- now the user open the URL again http://192.168.100.17:7001/myapp/faces/login
6-Run the SQL again , and I notice that the old session still exists and a new session created too.
SELECT USERNAME,STATUS FROM v$session
WHERE USERNAME = 'ADFUSER'RESULT:
USERNAME                       MODULE                                           STATUS
ADFUSER                        JDBC Thin Client                                 INACTIVE
ADFUSER                        JDBC Thin Client                                 INACTIVE
2 rows selected.and every time I login to the application , a new session is open and the old session still exist
I do not know why this happens
I want to kill old session when the user close the application.
These sessions are cleared only when i restart the weblogic domain.
here is some information about my development environment:
Jdeveloper 11.1.2.3
WebLogic Server Version: 10.3.5.0
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
thanks in advance

Hi,
for performance reasons you should not use dedicated user connections to the database. Instead you use JDBC data sources (default in JDeveloper for ADF BC) that you can configure the database connection pooling for. This means that your v$session will always show a set of active session, which however are shared among users. Assuming you use ADF BC, this is what happens
- A user requests a data bound page
- The ADF BC checks out an AM and connects to the database using one of the database connections in the pool
... user work here ...
- user exits application
- ADF BC returns AM to pool and passivates pending user state (if application is left with dirty transaction)
- Database connection is available in pool as soon as AM released
This also happens between requests. Long story cut short: v$session doesn't give you a true picture
Frank

Similar Messages

  • How to Generate Audit table entries for user navigation in ADF application?

    Hi all,
    I have a requirement that I need to have audit table entries for each user action in my application. Along with entries for user actions like insertion,deletion and updation I also need to have entries in the audit log even when a user simply navigates to or views any page.
    Although I was successful in creating the entries for user actions like insertion,deletion and updation I failed to do so for simple user navigation through the pages.
    Can anyone please help me out?
    Thanks in advance,
    Arijit

    Hi,
    Thanks for the quick reply. I am using JSF for my ADF application.Could u please elaborate how to use the PhaseListener for Auditing user navigation?
    Arijit

  • Where the session begin when user login

    Hi all,
    Just want a detail understanding of where the session starts when user login in ATG application (handle login), and where the session ends (handlelogout)
    thanks and regards
    333

    Session management is completely application server related.
    ATG do not play any role in session management.
    Refer this doc to under how session is created and managed.
    http://docs.oracle.com/cd/E19644-01/817-5451/dwsessn.html
    Peace
    Shaik

  • How to access the global data in user exit.

    Hi All,
    How to access the global data in user exit.
    the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program.
    this document number is not imported to the FM i needed to access for frther proceed.
    Thanks in advance.

    Hi,
    See the below PDF file by Jeff Goldstein. There you can find all the details about accessing data outside of the exit.
    [SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
    This will help you to solve your problem.
    Regards
    Karthik D
    Edited by: Karthik D on Dec 2, 2008 4:18 PM

  • How to close a HTTP session when a user closes the window

    Hi,
    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template and this was implimented on the Menu page, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly.
    If user navigates to the other pages from the main page... then the logoff function was not implimented in the other pages. So many of the users are closing the windows directly. Eevn if we impliment logoff in all the subpages, As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.
    Regards,
    Tony

    Hi,
    And also take a look on the Genral property of the web template. We solved this problem by changing only this property (no extra things).
    <b>Property:                            Value</b>
    Automatic Session Management:           Active
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by: Anil Kumar Sharma

  • I have a java code that expires user sessions after 30 min.But the session does not expire in Firefox version 4 where as it expires in all previous versions

    I have a java code that expires user sessions after 30 min.But the session does not expire in Firefox version 4 where as it expires in all previous versions

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • How to make session invalid when user refresh the page?

    How to make session invalid when user refresh the page?

    I have a <form> in a JSP file that has another JSP file as an action.
    I have main.jsp that has <form> with action.jsp file as an action.
    Now when I submit the <form>, request forwarded to action.jsp and it will take the action. But this file is taking so long, hence user refresh the page again and again, hence duplicate request processing is occuring.
    I want to prevent this.

  • Can anyone tell me how the session expires once we logout the page?

    can anyone tell me how the session expires once we logout the page?
    After logout ,if we click back button, it wont goes to last page,please explain how to write a code in jsp?

    When we click logout the page redirects to logout.jsp or sevlet, there
    the code for removing the attributes and invalidating the session is written. and then redirect the page to other page
    Do You want some code???

  • How do I move Events from one user to the other?

    I have two users on my PowerBook G4 and in preparation of moving all to a new MacBook Pro I want to move the pictures of one user to the other user. I've tried copying them and was successful but the Events did not copy, rather all 530 photos copied as one Event. How do I copy the photos and maintain the Events?

    iPhoto Library Manager is recommended on here many times every day. I can't recall anyone mentioning a significnt issue with it.
    Regards
    TD

  • How can i share documents with different users on the same mac?

    How can i share documents with different users on the same mac?

    Shared how? The other users can read the documents or you all can read and write the documents?
    The first is easy just place the documents in /Users/Shared anyone can access the files there and the other users will be able to read them.
    The second is a bit trickier.

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • How to find the list of all user exits modified by the users

    How to find the list of all user exits using by in R3

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How do i stop a software update to the ipad after it has reached the stage of asking for itunes connection?, as i didn't sync my data to the laptop.

    How do I stop a software update of the ipad after it has reached the stage of asking for itunes connection?
    i didn't sycn my data, and itunes mentioned it will restore the ipad.
    thanks

    How do I stop a software update of the ipad after it has reached the stage of asking for itunes connection?
    i didn't sycn my data, and itunes mentioned it will restore the ipad.
    thanks

  • HT4528 How do you close programs running in the background after you update to the ios7?

    How do you close programs running in the background after you update to the ios7?  It no longer works to tap the button twice

    double tap the home button, and swiipe upp on the app screenshot

  • My KDE forgets the session after restart

    Hello
    When I restart my KDE it forgets the session, the started apps and all the passwords I have put in the KDEWallet during the session. Does anybody has the same problem and do you have any idea how to fix it?
    Thanks

    Could be file permissions, or it could be a settings issue. Look around for settings for the two things, and if session saving is on and stuff like that, try the following.
    chown yourUsername:yourGroup ~/.kde/ -R
    chmod u+rw ~/.kde/ -R
    Then reload KDE and attempt to use the mentioned features again. If checking settings and changing permissions does not work, then try running KDE via a virtual terminal so that you may look for error information if any is produced. Good luck.

  • Coming back to the Transaction from a User Exit

    Hi,
    I perform some checks in a User-Exit before saving a transaction & throw an error message if something is not proper. But, the transaction terminates after that. I need to give the user an option to make changes in the transaction. eg, if user exit checks if a certain field should not be empty, the user should have an option to enter the field after the user exit throws the message. How can i go back to the same screen from the exit to achieve the same.
    Thanks in advance.
    Bikash
    This was for a general scenario wherein after an error message triggered by an Exit is displayed, the transaction just terminates.
    Message was edited by: Bikash  Agarwal

    Hi,
    If you give error message, it will leave the current transaction.
    Instead try using some POPUP function module, which will have options 'OK' and 'CANCEL'.
    If user presses 'OK', then allow user to do modifications and if he presses 'CANCEL', then write LEAVE PROGRAM to come out of transaction.
    Hope it helps.
    Regards,
    Shashank

Maybe you are looking for

  • Creating a new line in tabular form

    Hi all, I designed a form which displays employee information like empno,ename,job,sal. I created a control item as "create newline" and lov is attached to this item,lov contains values as YES,No. If I select create newline value as YES then a new li

  • Infoset based on logical database CRC and customer field wrongly calculated

    Hello, I'm building an info-set (SQ02) based on logical database CRC. My requirement is to calculate a value based on the start date of the capacity allocated to a work center (KAKO-BEGZT). I defined a customer field (named FIELD1) with data type I,

  • HRMD_A IDoc Serialization Help

    Hi, I have a client that wants to activate IDoc serialization for HRMD_A. They have a global system that sends HR master data to multiple regional systems, MDM and SRM. The requirement is to serialize the IDocs for all regional systems, but not for M

  • Menu background color has changed after applying Forms Patch3 (10.1.2.3.0)

    Hi, we have applied Patch3 on our Forms Environment. Now the menu background color has changed from green to gray (colorScheme is "teal" in formsweb.cfg). This behavior isn't documented and our customer want's to get the green menubar back... Any hin

  • Is it mandatory to have NWDI for building custom classes in ISA.

    Hi All In the development guide, I see that for extensions and modifications, we go through NWDI. But till ISA 4.0 we used the ANT Build tool. Can someone please help me out with extensions is CRM-R/3-ISA B2C applications. We are upgrading from ISA 4