Do not allow a user to connect from multiple computers

IM using APEX 3.02.


Is there a way to put an end to the former a user session when a user logs in from a different computer/browser?

Hope someone can help me :)

Edit:
After a little research I found that the sessions are stored in: flows_030100.wwv_flow_sessions$

I can also run this like sql and it actually works:
remove the flows_030100.wwv_flow_sessions$ where cookie = upper ('username');

We have our own function of connection and I thought that I would delete all the lines in wwv_flow_sessions$ where the COOKIE is equal to the username of the user like this:

remove the flows_030100.wwv_flow_sessions$ where cookie = upper (p_username);

but then I get this error:
Error: PL/SQL: ORA-00942: table or view does not exist
Text: delete from flows_030100.wwv_flow_sessions$

Edited by: bjarkekr 2011-02-07 14:35

I'm not aware of any builtin setting that does this.

If there is an internal API to disconnect from any session (as the admin can do this, he must be anyway), it would have been easier. Probably it is not made available to users of the normal application because of security problems

  • Maybe this isn't the best solution, but it should work.
    It's Miley application process to be run whenever a new page is loaded as well after submission before calculations (this process means 2 that makes the same run each of these events).
    In the process, it checks whether new sessions for this user has been created and if there is a new session it disconnect the current session.

    DECLARE
      ln_i NUMBER;
    BEGIN
      --Check if a newer session for current user exists
      SELECT 1 INTO ln_i
      FROM   apex_workspace_sessions
      WHERE UPPER(user_name) = UPPER(:APP_USER)  --for current user
      AND     apex_session_id != :APP_SESSION --sessions other than current session
      AND     session_created > (SELECT session_created FROM apex_workspace_sessions where apex_session_id = :APP_SESSION); --newer session creation date
    
      --Log the user out
      HTMLDB_CUSTOM_AUTH.LOGOUT
         (
          p_this_app            => :APP_ID,
          p_next_app_page_sess  => :APP_ID||':101'
           );
    WHEN NO_DATA_FOUND THEN
      NULL;
    END;
    

    Not tested

    If necessary, you can redirect to a separate page where you show the message that the current session is exceeded due to a new session elsewhere.

  • Tags: Database

    Similar Questions

    • Two of our accounts of Firefox will not allow the user to connect to gmail.

      I just upgraded my desktop computer for Windows 10. We have several user accounts on this computer. We all use Firefox as a browser. When one user other than me opens Firefox in their account, they can go without a problem, but cannot connect to gmail. They receive the following message: "secure connection failed. An error occurred during a connection to accounts.google.com. The peer certificate has an invalid signature. (Error code: sec_error_bad_signature). The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Contact the Web site owners to inform them of this problem. »

      If they disconnect from their user account on the computer and connect in mine, then start Firefox, they are able to access gmail and have all the features. Any suggestions? Thank you.

      Hi DShef, in case you are an avast user, please try to disable https scanning in avast:

      1. Open the Avast dashboard on an affected system.
      2. Select settings in the left side menu.
      3. Adopt a Protection Active.
      4. Click on customize next to the Web Shield.
      5. Uncheck the option "Enable HTTPS analysis", and then click ok.

      http://www.gHacks.NET/2014/10/31/avasts-HTTPS-scanning-interferes-with-Firefox-and-other-programs/

    • BLUETOOTH on my laptop will not allow a device to connect.

      How can I activate my BLUETOOTH on my laptop? He cannot receive a file becauce he can not allow a device to connect... My bluetooth mobile device is detected but is not active and cannot be discovered?

      Hi najla treas.,.

      Since you have not mentioned your OS version, I'll give you a general/generic resolution.
      If it helps, let me know.
      Jaycee
    • Firewall does not allow me to stay connected to AOL Webmail. When I turn off my firewall, my AOL Webmail works.

      original title: Windows Firewall

      Firewall does not allow me to stay connected to AOL Webmail.  When I turn off my firewall, my AOL Webmail works.

      Hello

      I suggest to grant exceptions for AOL mail in the Windows Firewall and check. Follow the steps mentioned in the article below.

      Allow a program to communicate throughWindows Firewall

      http://Windows.Microsoft.com/en-us/Windows7/allow-a-program-to-communicate-through-Windows-Firewall

      I suggest to contact AOL to check the exact port and you can open the port in the windows firewall. Follow the steps mentioned in the article below.

      Open a port in Windows Firewall

      http://Windows.Microsoft.com/en-us/Windows7/open-a-port-in-Windows-Firewall

      Contact AOL, click on the link below.

      http://help.AOL.com/help/product/aol_webmail/

      Thanks and regards.

      Thahaseena M
      Microsoft Answers Support Engineer.
      Visit our Microsoft answers feedback Forum and let us know what you think.

    • the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

      the simple contact form widget does not allow the user to submit. the lunch box turns red. What should I do?

      Hello

      You have used a form of e-mail field to create 'Appetite' section. This is the reason for which form registers an error as its not able to recognize an e-mail here entry.

      email form field is a required field for form of Muse. Please rename back to e-mail and also to create another field in form in the widget forum (go to the Option to form and enter a single-line text field) and it should work properly.

      Concerning

      Vivek

    • Do not allow the user to enter characters undetermined

      Hello

      For some reason some have used it the FIELD of TEXT object for the field of digital data entry.

      In fact, the user must always enter numeric data.

      No decimals, no comma, no alphabetical characters allowed except numbers.

      (Syststem should not allow the user to enter data not allowed at all... I mean, when to reach us using digital / object field... or if user trying to enter data not allowed I HT to raise an error and CLEAR the field immediately)

      Pls I want to know how to get my requirement? Do I need to use JavaScript or model or Validation Object palette model or all 3?

      I am newbie, pls give me the code (such as JavaScript)

      Thank you

      You can use a small script with a regular expression in the event of change of textfield yout, to check the input current and delete everyting that is not a digit.

      If (! xfa.event.change.match(/\d/)) {}

      XFA. Event.change = "";

      }

    • Is it possible to synchronize music and photos from iTunes from multiple computers?

      We have two MacBook Pro - one for me and one for my children.

      Currently, I manage all the music and pictures via my Mac (synchronization of iOS devices), so there is a place for all the music and photos.

      However, children now want to be able to manage their own music and photos.

      Is it possible to synchronize music or photos from multiple computers? for example:

      -Sync Mac and pictures of the other music

      -Synchronize Mac music

      Thank you

      The key thing here is not the machines it's libraries. Devices can synchronize an iTunes library at a time. You have to arrange if both computers have the same library (problems with maintaining them synchronized or using at the same time), or seek a centralized service such as game or music from Apple (with her own set of questions).  The key is that the media distributors wish to exercise tight control over how music and movies can be shared (they don't care about your photos).  You can do things with the homepage of sharing with family.

      Family shares - http://support.apple.com/kb/HT201060 - "family sharing makes it easy for up to 6 people in your family share of each and other iTunes, iBooks, and App Store purchases without sharing accounts.» Families with the same credit card purchases and approve kids' expenses directly from the device of a parent. And share photos, a family calendar and more to help keep everyone connected. »

      «Sharing content with sharing - http://support.apple.com/HT201085 - bought family"with the participation of the family, family members go immediately to each and any other music, movies, TV shows, books and applications and can download to their devices at any time they souhaitez.*" ' * not all content and content types are available in all countries.» All members of the family must use the same iTunes Store country or region. Music, movies, TV shows and books can be downloaded on up to 10 devices per account, of which five may be computers. Apps can be downloaded from the other facilities, family member owns or controls.

      If you do not see your family sharing content - http://support.apple.com/kb/TS5449 also: http://apple.stackexchange.com/a/146077 - exit iTunes Store and App Store apps and start over.

      Who bought content can I share using sharing - Apple-Support - http://support.apple.com/HT203046 family

      Let family sharing - http://support.apple.com/HT201081

      Home sharing Support page - http://www.apple.com/support/homesharing/

      12 iTunes for Mac: use the home sharing to import items from another iTunes library - https://support.apple.com/kb/PH19614

      iTunes: set up sharing at home on your computer - http://support.apple.com/kb/HT4620

      Understand sharing home - http://support.apple.com/kb/HT3819

    • Allow other users to connect through my internet connection of mobile phones.

      Quite simply, I'm setting up my xbox live to run through my internet connection of mobile.

      When I select the check box to allow other users of the network to connect through this computer's internet connection it turns off immediately, so is not enabled.

      I tried disabling the firewall etc to see if it limited the ability of sharing, but it did not work.

      Any information or help would be greatly appreciated.

      Hi Stewart,
       
      Please go through the article below which will help you to connect to windows live using your internet connection for your laptop.
      How to connect your Xbox 360 wired controller to a computer running Windows
      http://support.Microsoft.com/kb/906347

      Please also see the link below. This could help you.
      http://support.Microsoft.com/kb/978618

      If the problem persists, I suggest that question you post you to Xbox forums.
      Xbox support

      http://forums.Xbox.com/xbox_forums/xbox_support/default.aspx

       
    • Allowing a user to connect through SSH

      I need to allow a user (not root) to connect to a server ESXi 4.1 via SSH.

      The ESXi server is not a member of Active Directory.

      I have read the article on the http://kb.vmware.com/kb/1024235 page and created a new user.

      Then I opened the inventory, choose 'Add Permission' and adds the new user with the role of administrator on all of the inventory.

      When I try to access it via SSH using the user name and the password of the user I get "access denied".

      I think I missed a relevant step because if I open the inventory again and select ' add permission "the list of users with the privileges granted is empty and I don'tI do not see the user in the list of users with permissions."

      However, if I use the vSphere client I locon as a new user and perform all the administrative tasks of ther.

      • What step am I missing?
      • As my user should only use SSH to perform actions on a given virtual machine, I can great administrative rights only for the virtual machine without rights to granding to all inventory?
      • Is there a more detailed documentation for referred to?

      Concerning

      Marius

      Why not use powercli to create a snapshot of the vm? http://tech.mikeal.com/Blog1.php/2011/01/21/VMware-PowerCLI-scripts-delete-all-snapshots-create-new-snapshots

    • Desktop sharing, allow two users to connect on the same desktop

      Does anyone know if view Horizon be configured in such a way that:

      -Two (or more) users can connect on the same desktop

      -vSGA can still be used

      The reason why I ask, is that in my area there is a request for collaboration in which two people on different locations want to go through a 3D medical treatment plan and discuss on the phone. Documentation of the Horizon does not say that it can, but it does not say that he can't.

      There is nothing on the Horizon that would in native mode.  You must use a product type to have two people viewing the same third party screen sharing office.

    • current security settings do not allow files to be downloaded from attachments

      Original title: security settings

      current security settings do not allow the files to download attachments to emails.

      Not even when I send them to me.

      I tried changing the settings, but it did not have any diff.

      current security settings do not allow the files to download attachments to emails.

      Not even when I send them to me.

      I tried changing the settings, but it did not have any diff.

      Try this...
      Assuming you are using Windows mail. If this isn't the case, ignore what is said below.

      Open Windows mail > tools > Options > Security tab > uncheck "do not allow open... or registration of attachments" > uncheck "block Imgaes and other external content in HTML e-mail" > click OK for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem. ""

    • Bluetooth for OfficeJet 150 connections by multiple computers at the same time

      I have connected the first computer to the printer with a bluetooth card adapter.  I'm trying to implement the second printer with an adapter TrendNet bluetooth (TBW-107UB).  TrendNet UI shows the printer, but I can't seem to print on it.  HP Toolbox can not talk about the printer (the second computer, the first is having no problem).

      Do not know if my problem is the adapter Trendnet or try to connect to the printer via two computers currently.

      Took me a while, but I now (or at least had) this work.  Two computers AND a smart phone, capable of printing to the HP150.  I send a file from computer A, and then the computer B, that has even once, then the smartphone, then B, then A.

      I think the original problem was the proprietary software that I installed (and subsequently uninstalled) which would not allow the 2nd computer to communicate with the printer.

      All sorts of "weird" things are come with bluetooth, but it probably everything will become clear once I got bluetooth.  I don't know I'm having problems when I disconnect and then reinsert the bluetooth dongles, turn off, then turn it on computers, or whateever.

      BUT I know that I can print from computers, as I can at any other network printer (or shared).

    • "User profile service" will not allow my daughter to connect with his user account

      Qwest High Speed Internet 4.1 on both portable child, Norton installed, uninstalled McAfee installed. Œuvres of son, daughter won't let his newspaper on sub account. Vista rpet "user profile Service failed to load the profile.  My administrator account will work, get the message 'DeskTrayManager' has stopped working. When I click 'debug', it tells me to go to the updates of windows, what I did. Any thoughts?

      Restore point:

      Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

      Try a restore of the system once, to choose a Restore Point prior to your problem...

      Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      If the above does not work:

      http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

      Difficulty of a corrupted user profile

      After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

      See you soon.

      Mick Murphy - Microsoft partner

    • Do not allow any wireless network connection

      Hello

      I am trying to set up my connection wireless but when I go to my control panel/network connections and right click and enable the wireless connection, it just goes back to activate. Do you know what I can do to activate it.

      Thank you very much

      Hi Paulm,

      can you please tell us which laptop computer and operating system you have as some laptops are only Wifi with antenna and not Mini PCI Wifi card.

      Also, you can check in Device Manager if your Wifi card is detected in a right way! If Yes, there is also an option to enable or disable the card.

      Please do not forget that the FN + F8 key combination also allows to enable/disable option.

      Tom

    • The new vesrsion Firefox for Windows does not allow for recording of images from websites. Why is it so?

      When I select a photo from any website by clicking right, popup options. But the option "Save as" does not work.

      Hi tkbabu3,

      Yes it is, I am unable to replicate this, can you provide an example of the Web site where this is happening please?

      Happy to help you otherwise!

    Maybe you are looking for