How to end the session of a web application?

For the experienced:

I use JDeveloper 10.1.3.4 and have a question about the end of the session to a web application.

First of all, I would like to clarify that the session I'm talking about is the session that can be seen in the web.xml file, for example,
    <session-config>
        <session-timeout>35</session-timeout>
    </session-config>
If I understand correctly, if there is no user activity, its session ends in 35 minutes.

My questions are:

1. If in the application I don't put the code anywhere to end the session and simply say to the user to close the browser, I tell myself that the session will persist on the server until it times out 35 minutes later. Is this correct?

2. If this interpretation is correct, is there a way for the application to get this session object and terminate when the user clicks on a button (a button ' Quit') explicitly? I find that without end of the session, after the user has clicked on the "Quit" button he can still return to the session of the application by clicking the browser ' go back a page ' button. That is not desirable. Once the user clicks on the button leave, it may be that the user should not be able to come back in this new. This is why I'm looking for a way to explicitly end the session.

3. the application also interacts with the Oracle database server. If in the application there is no code explicitly put an end to the session of the application, the user login on the database server also will persist until the application session expires 35 minutes later?

Thank you very much for your help!


Newman

Newman,

1. If in the application I don't put the code anywhere to end the session and simply say to the user to close the browser, I tell myself that the session will persist on the server until it times out 35 minutes later. Is this correct?

Well Yes

2. If this interpretation is correct, is there a way for the application to get this session object and terminate when the user clicks on a button (a button ' Quit') explicitly? I find that without end of the session, after the user has clicked on the "Quit" button he can still return to the session of the application by clicking the browser ' go back a page ' button. That is not desirable. Once the user clicks on the button leave, it may be that the user should not be able to come back in this new. This is why I'm looking for a way to explicitly end the session.

      ExternalContext ectx =
        FacesContext.getCurrentInstance().getExternalContext();
      HttpServletResponse response = null;
      HttpSession session;

      response = (HttpServletResponse) ectx.getResponse();

      session = (HttpSession) ectx.getSession(false);

      if (session != null) session.invalidate();

3. the application also interacts with the Oracle database server. If in the application there is no code explicitly put an end to the session of the application, the user login on the database server also will persist until the application session expires 35 minutes later?

Assuming you are using ADF business components - don't. Database sessions are, by default, not assigned to a single user (nor is an instance of the application module). Good read on AM pooling in the docs about the gory details. If you are not using ADF business components - the answer could, of course, be different.

Best,

John

Tags: Java

Similar Questions

  • When you try to connect to the XP user account, it starts to load then said end the session but don't connect

    When I try to log on my account, he begins to say load my settings personal, but immediately after it is said to end the session once your settings and brings me back to the same screen and I'm stuck. I tried to do this in safe mode and the same thing is happening even with the account admin I also tried using last good known Configuration and not luck. How can I fix it?

    Hey ashok patelTM,.

    1. you remember to make changes to the computer, after which the issue started?

    Try these steps and see if it helps:

    Step 1:

    Unplug all devices (except keyboard and mouse) external connected to the computer and then try to boot to the desktop and check if it helps. Let us know the results.

    Step 2:

    Try the steps from the link to the following article and see if it helps:

    How do I recover from a corrupted registry that prevents Windows XP startup

    I hope this helps.

  • How to kill the session running from work processes

    How to kill the session work processes running... What is the process to be programmed

    BEGIN
      FOR c IN (
      SELECT s.sid,
      s.serial#
      FROM v$session s
      WHERE s.username = 'your_user_name'
      )
      LOOP
      EXECUTE IMMEDIATE 'alter system kill session ''' ||
      c.sid || ',' || c.serial# || '''';
      END LOOP;
    END;

  • The previous user didn't verify his account. I don't know how to close the session?

    The previous user didn't verify his account. I don't know how to close the session?

    CC just asked me to check it out but it is NOT my account and I do not know whose ID is.

    And now I can not connect with my account. Help, please.

    BTW, there is NOT "Préférences."... "in the setting button.

    Windows:

    Step 1)

    Exit the desktop Adobe Creative Cloud application.

    End Adobe partner all the processes like creative cloud, CoreSync, AAMUpdater, Armsvc... etc. of the Task Manager.

    Step 2)

    Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.

    Type below command and press the enter"" key.

    AppData

    Then go to the Local > Adobe > OOBE. Open the OOBE folder and delete the file opm.db .

    Once you had deleted Opm.db file, run Adobe Creative Cloud application and check.

    Mac:

    Step 1)

    Exit the desktop Adobe Creative Cloud application.

    End Adobe partner all the processes like creative cloud, CoreSync, AAMUpdater, Armsvc... etc of Activity Monitor.

    Location: Applications > utilities > activity monitor.


    Step 2)

    (1) right-click on the icon in the Finder, then select 'Go - To' folder.
    (2) you will get a text box, type in the following command and then press the 'return '. (Don't miss ~ symbol)

    ~/Library

    (3) then navigate to Application Support > Adobe > OOBE. Open the OOBE folder and delete the file opm.db .

    Once you had deleted Opm.db file, run Adobe Creative Cloud application and check.

  • How to end the system idle process

    How to end the system idle process
    ... "it is to consume my whole CPU.

    system:
    HP pavilion g4 series
    Intel core i5

    No it's not! Maybe someone else can give a better explanation, but the way I understand it is that when your system is idle, the system shows 100% idle process or nearby and it is because it has no applications or programs that run, but as soon as you open a program or run an application, and it requires CPU resources say between 1 and 4%, you will see the system idle drop in numbers, which shows the amount of the resources required by the program or open application.

    So I believe that everything that is, show processor resources available to a given point in time.

    Now, a virus can attack the process and change his behavior? I don't know, but if you suspect a malware attack, run complete scans of your system just to be sure.

    Good luck.

  • How to remove the cache presentation Services (Web UI)

    Hello

    How to remove the cached presentation Services (Web UI) and SPR also.

    Hi user,

    Parameters---> Administration---> problem SQL

    Call SAPurgeAllCache();

    above the purge cache level user interface command and the RPD.

    Thank you
    Saichand.v

  • How to view the download progress of an application on the Mac App Store

    When I download an app on the Mac App Store, A cannot see the status of the download. How to display the download progress of an application on the Mac App Store?

    Of application are what type you referring? If the app is in the launch area, then you will see the progress bar just below the icon on your dock launch pad. If you want to see the progress of an application that is not in the launch pad, then if you look at the Mac App Store update page, it shows the progress just below bar app that it is updating.

    Sorry - that was updated.

    See you soon,.

    GB

  • How to show the multiple declaration for an application

    How to show the multiple declaration for an application

    Thanks for your suggestions...

    Looking at the javadocs you can only save an indicator by application. You will need to do three separate applications and package them as an If you want three different indicators to be visible at a time. Or change the flag that (or which group) of the indicators you want to display.

  • How permanently increase the font size in windows applications

    How permanently increase the font size in Windows applications as for example the mail application? The letters are much too small, and my eyesight is perfect! Thank you

    Sign of salvation,

    Welcome to the Microsoft community forum. From the description of the problem, it seems that you want to change the font size for the user interface modern app.

    You can change the modern user interface text size by going to the charms > settings > change the settings of the PC > PC and peripherals > display

    Also see this Microsoft article:

    http://Windows.Microsoft.com/en-us/Windows-8/make-text-screen-larger-smaller/?v=t

    Windows 8.1, you can now set the DPI (Dots per Inch) scale to make text and other items, such as icons, fonts and windows, to more or less important for all display or by display screens.

    Windows 8.1 DPI scale improvements are mainly focused on:

    • Optimization of ergonomics and the readability of displays high-resolution
    • Offering an experience uniform multi-screen systems
    • Give developers optimize app specific scale based on display DPI

    If you are using a resolution of 1366 x 768 display on a shelf, chances are that UI will look good 100% ppp settings. But what about when you connect the tablet to an external high resolution? In Windows 8, you can choose either 100% in order to optimize the user interface on the screen of the tablet or display up to 150% in order to optimize the user interface on the outside. You have to make compromises.

    8.1 Windows takes care of this issue pressing address scaling of IPR by display . By default, Windows 8.1 will choose the optimal DPI scaling value for each display based on the value selected for the global scaling in the control panel.

    You can also view the suggestion provided by Shawn on this thread.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows8_1-ECOMS/how-does-one-increase-the-size-of-the-text-of/58c7f3fe-8686-4422-ad36-8ab75515527f

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • How to check the Session Variables using the analytical web dashboard

    This is my first post. Easy points to the first right answer... If I can figure out how to give points.

    Problem: I need to know how to check that the Session Variables with the Administration of Oracle BI tool are used by the web analytics tool.

    Environment: Windows running Oracle 10g BI. Connect to the database using web analytics http:// < server >: 9704/analytics, web analytics is running in a windows Explorer browser.

    Current situation: the analytical tool is connected to the database and I can use the screen of "Answers" to the table edge to probe the tables look and things as expected.
    In the administration Oracle BI tool I can see the session of web analytics and I see that he thinks that the Session Variables are set correctly.
    I have reasons to doubt that the analytical tool is to get the right variables and I need to check it out.
    I know that I should use the 'Answer' window to create a shape any of a query that includes NQ_SESSION. < my variable >, but I can't understand what the format should be doing the work.

    That's all I need.

    What I do is insert a text in my dashboard object and then set the properties of the text object to display the variable.

    for example to display the DISPLAYNAME variable, the text object properties are:

    User: @{biServer.variables ['NQ_SESSION.]} {[DISPLAYNAME']}

  • End the session

    My computer does not allow me to close the session.  How can I bypass the normal method?

    Hello

    1. is your computer connected to a domain or workgroup?

    2. you can use commands like "shutdown - r-t 01" to reboot your machine.

    3. search Bing.com and you would end up with several controls to start, stop, shut down your computer.

    Mark this message as a response, if the solution help you so that others can be helped as well!

    Saurabh yapi | E-mail address is removed from the privacy *.

  • How to initialize the session OBI apps

    Hello

    Can someone tell me please how to define apps initialize session in OBIEE.

    I am creating a report of the OBI that calculations in the answers and I do that through function EVALUATE and for some calculation I need to put the apps initialize session because the calculation contains pkg.function which is located in the Oracle applications database.

    I need to initialize the thing below in OBIEE

    BEGIN
    mo_global.init ('IN.');
    mo_global.set_policy_context('S',825);
    END;

    Help, please.

    Thank you

    Titas

    Hi Titas,

    You can make use of the 'Pool of connections'-> Connect Login Scripts tab to initialize the session before/after/on / on switch off according to your needs.

    I hope this helps.

    Thank you
    Diakité

  • How to disable the "begin with Firefox" web page when starting of Foxfire?

    Everytime I open Firefox I get the additional web page 'start Firefox' and don't know how to turn it off. Can you help me?

    The page can be defined as an additional home page, the following link shows how to check and set your home pages - https://support.mozilla.com/kb/How+to+set+the+home+page

  • How to pass the session IMAQ to the Subvi

    Hello

    My experience with LabView is neither very good nor extended. I am a scientist and I'm with IMAQ data acquisition. My current problem is that the people who wrote the script is modular, versatile, or clear initially structured. So I try to reduce the ridiculous number of tests in a simple flowchart to a level that people can actually understand it... and to make the more versatile script for future experiments.

    I'm introducing quite a few subVIs to be executed repeatedly. However, I can't know how to pass the IMAQ session on the Subvi. I constantly get the error messages. In this case, I want to acquire images with OIDE_CollectFrame.vi controlled by OIDE_TrialPhaseCollect.vi. I couldn't understand how to assign the refnum IMAQ session class, either.

    It is probably a newbie question, but usually I program with LabView.

    Dennis


  • How to disable the administrator account on web filtering

    I recently discovered how to use the parental controls on the standard account of my son, but I also applied parameters similar to my own account (which is the system administrator account) to prevent him from jumping on my account to visit questionable Web sites. I am trying to download a free ebook on a reputable site, but he tells me that the page is blocked and to disable web content filtering. How to do on my administrator account? And should I do with each blocked site, then go back and change my settings back again?

    Hi, Maxim,.

    Thanks for posting your query in Microsoft Community.

    I suggest you refer to the article below which will help you to answer your query:

    Family Safety: FAQ

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

Maybe you are looking for