Allow only one session per registered user

Hi,
we plan to implement a security module in our application that will display at login time if the user has other sessions still open and to give him the possibility to proceed and then to automatically purge all the other sessions he has, or to stop as maybe he has the other session just in another browser / another computer.
The APEX_WORKSPACE_SESSIONS view shows very useful information in this matter, but beside the fields in it, it would be very useful to have also the last access/activity time for that session. How is best to get this? Join with the APEX_WORKSPACE_ACTIVITY_LOG view like this?
SELECT q1.apex_session_id, q1.user_name, q1.session_created, q2.application_id, q2.first_access, q2.last_access, q2.requests
FROM
  (SELECT * FROM APEX_WORKSPACE_SESSIONS WHERE user_name != 'nobody') q1,
  (SELECT apex_session_id, application_id, MAX(view_date) last_access, MIN(view_date) first_access, count(*) requests
      FROM APEX_WORKSPACE_ACTIVITY_LOG
      WHERE apex_user != 'nobody'
      GROUP BY apex_session_id, application_id
  ) q2
WHERE q1.apex_session_id =q2.apex_session_id
ORDER BY 3 DESC;And now my second question: Is it possible to purge the previous sessions, when the user accept this option? For example the sessions that remained open, when the user just closed the browser, or IE/Windows crashed :). How can this be done?(not the IE/Windows crash as that is simple :) ) Or at least to invalidate all objects in those sessions.
Thanks in advance,
Florin

I have an SR opened with Oracle support and here is what they say:
It looks like we are hitting
Bug 7587013 - INSERTING AND DELETING WWV_FLOW_DATA CAUSES DEADLOCK, which is also related to
Bug 6618662 - APEX APPEARS TO BE CAUSING DEADLOCK - CASE COLLECTION.
To further clarify the issue, these DML statements from the APEX engine are used when rendering classic reports (and in the computation of the pagination set).
There is no fix yet for the issue, however the frequency of the issue decreases dramatically in the last version (which you currently have).
The issue should be fixed in Apex release 4.1
It appears that the only way this deadlock can occur is if two requests for the same APEX session are made concurrently.
This can be due to a user getting impatient and hitting their refresh button in their browser, or a user opening up a new tab in their browser and concurrently running the same page with the same report.
Not really helpful IMHO, suggesting to wait for a version that will not be release soon :(. If any of the APEX team engineers / PM is interested I can dig deeper into the issue and isolate the whole chain of requests from an user that hits this error, which unfortunately appears more and more often lately :(. I need to find at least an workaround if not a fix as now I get daily at least 7 such ORA-60 Deadlock detected issues.
Just last week I was able to produce a nice testcase for a bug in APEX_MAIL, and prod dev made the patch in less than a day, with all the timezone difference issues. I was pretty impressed when getting that quick the patch 9414444 (thanks Joel :) ).
Florin

Similar Messages

  • Permit only one access per user on guest portal Cisco ISE

    Hi,
    Could you please help me to figure it out if it´s possible to create a guest account on cisco ISE which permit only one concurrent access?
    We don't want to have multiple devices registering with the same account, just one different account for each device.
    Thanks,

    Hi Gino,
    You  can restrict guests to having only one device connected to the network  at a time. When guests attempt to connect with a second device, the  currently-connected device is automatically disconnected from the  network.
    This is a global setting affecting all Guest portals.
    Step 1 Choose Administration > Web Portal Management > Settings > Guest > Portal Policy.
    Step 2 Check the Allow only one guest session per user option.
    Step 3 Click Save.

  • UCCX 8.5.1 SU2 Agent Line/Ext on Two IP Communicators - Only One Will Be Registered

    I have a corner case where an agents laptop may use a local Gigabit Ethernet port or a different Gigabit Ethernet port located on a laptop docking station using IP Communicator 8.6(2).
    Due to a requirement for QM/Compliance Recording (per Calabrio), we need to code the SEP<NIC MAC ADDRESS> for each potential port; meaning I will have two IPCs coded; each with a unique device name set to SEP<NIC MAC ADDRESS>.
    The IP Communicators are set to generate their device name automatically.  This means that they can only use / register one IPC at a time.
    In the lab, having two IPCs configured with an identical line seems to function 100% when only one of IPC stations is registered to CUCM. 
    SRND and various posts state the usual about shared lines for agents being unsupported.
    Does my scenario fit with "this is a shared line" which would force us to alter design and complicate the user experience with extension mobility?
    Thoughts?
    Code in use is CUCM 8.6 and UCCX 8.5(1)SR2; CAD is being exclusively used on Win 7.

    Calabrio professional services has informed us (and it was re-confirmed) that IPC needs to present the NIC being used for CR/QM/AQM to provide desktop recording functionality.
    Do you have experience where you have "hard-set" or statically configured the device name to one of the NICs (LAN) but it also worked for other interfaces with unique MAC addresses (WLAN, dock LAN, AnyConnect)?
    Also, our Cisco SE posed this question via IM to his Cisco AS associate and got a conflicting report; the justification was that "shared" in UCCX context means two or more active-registered to CUCM phone appliances with identical DN/in any partition (versus the CUCM definition of identical DN in a single partition).  He seemed to have direct knowledge of using two phone appliances associated to the same user/agent for a phone appliance migration effort (7940s to 7942s) where everything was pre-configured, the old phone was removed and the new one placed (only one entry was registered at a time).
    Do I trust Cisco SE/AS resources or SRND?
    Thanks

  • Can see only one photo per page. How to revert to multiple images per page?

    First noticed on my iMac and now on my Macbook (10.4.9)--I'm no longer seeing a month's worth of photos on a single page. Only one photo per page, sometimes with miniature ones in the top border. I thought it was simply an inadvertent click on by part and easily corrected. But all attempts on both computers and reading of Help index haven't led to restoration of an entire page of photos and elimination of the annoyance. I'm wondering now if something I downloaded might have altered iPhoto program itself, making it impossible to view large numbers of photos at the same time. Any suggestions appreciated.
    Cap

    Cap,
    This view, with the one photo big and the thumbnail strip across the top, is what happens when you double-click a photo with "Edit in: Main Window" set in the Preferences. There should be a button visible that says either Done or Return, to exit edit mode and return you to the library. If you still see only one photo, use the size slider in the lower right corner to reduce the photo size and get more thumbnails on the page.
    If, for some reason, you can't exit the edit mode, you may have a corrupt preference file. Quit iPhoto. Use the Finder to navigate to Macintosh HD/ Users/ (your user name)/ Library/ Preferences/ com.apple.iPhoto.plist and move that file to the Trash. Launch iPhoto, and you should be returned to the main viewing mode. You'll have to go in the Preferences and reset them to your liking.
    Regards.

  • Allow only one set of parameter values for all worksheets

    I would like to " Allow only one set of parameter values for all worksheets ", but prompt before executing the worksheet. This function is a great time saver, but the users on occasion would like to change at the least one of the parameters. Is this possible? What setting do I use? I've tried various combinations of the " After opening a workbook: " on the options page. " Run query automatically", " Don't run query (leave sheet empty) ", and " Ask for comformation ". I would have thought that "Ask for comformation " was the trick, but no. I'm considering putting a do nothing parameter that has the setting of " Allow different parameter values for each worksheet. " so that it will keep all the others, default this one, but prompt for a possible change.
    Any thoughts...
    Thanks,
    Jamie

    Hi Jamie
    Even though you have the same parameter for all worksheets a user can still choose what to use on a worksheet. Its just that if they click to another worksheet then that parameter will be applied.
    Which version of Discoverer are you using?
    Best wishes
    Michael

  • HT1386 Error message says only one library per device. My previous computer crashed and now I want to sync with new computer. How do I overcome the error message?

    Error message says only one library per device. My previous computer crashed and now I want to sync with new computer. How do I overcome the error message?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • Can I switch between Illustrator and Photoshop? (I am subscribing to only one product per month)

    Can I switch between Illustrator and Photoshop? (I am subscribing to only one product per month)

    Absolutely. Just change the sim card and the APN details in the settings. You can do this either manually if you know them or just sync with iTunes after changing the sim and the details will sync. Once you have done it once for each network the device seems to remember the details.

  • I write a mail and send it but when there is only one word per line. What do I wrong?

    I write many word per line but when I send it will turn to be only one word per line

    Did you check the HTML code of that message to see if tags like "span" or "p" or "div" were added or other CSS code to limit the width?

  • Filtered the data to get only one data per day

    Hi,
    From the excel file below I have Power (from Hg Lamp) vs date.
    I would like to filtered the data to have only one data per day. So when there are many data for one day, I want the data with Max Power (and delete the others).
    In the test vi below I filtered data by compared the data 1 by 1. So I reduced the number of data but I still have date with many data.
    I would like to count the number of data per days and keep the data with max power, but I don't know how to do it.
    If you have any ideas...
    Thanks
    Geof
    Attachments:
    Test.xls ‏227 KB
    Test.vi ‏48 KB

    I did it
    Thanks
    Attachments:
    Test.vi ‏48 KB

  • Restricting the user to only one session. Is this possible ?

    We have a web enabled Forms6i application running on Unix AIX server. user logs on to this application through a application logon screen.
    We have a requirement where we have to restrict user from logging on more than once to the application.
    - We thought of implementing this functionality through a database field which get set and resets each time a user logs on and logs off the application. Issue here is when do u reset the field. ? Is there a trigger on form which fires no matter how user exits from the system , including PC crahs ?
    - is there a better way of handling this functionality.
    Any help will be appreciated.
    Thanks,
    Gana

    Try to use Oracle profiles
    create profile test limit
    sessions_per_user 1;
    then assign this profile to the users you want them to have one session only. Moreoever, you have to change the parameter LIMIT_RESOURCES=TRUE in the init.ora parameter file.
    After changing the parameter file, shutdwon the database and open it again to let the profiles take effect on the user session.
    Good luck

  • Locking a JSP Page i.e allowing only one user to access it at a time

    Hi,
    I have web application where multiple users can log in at the same time.
    I have a JSP where a user is presented with a list of executable items.It is quite possible that at the same time more that one user tries to execute the same item.I want to disable this. i.e at a time only one user should be able to execute the item.
    Currently what i can think of is putting an extra column in the database...saying that this item is locked and you cannot access it until unlocked.But then this would involve a round trip to database.I want to avoid it, and do some coding in java code itself.
    But i dont know how to proceed.
    Any Help......

    sorry for the misdirection :(
    yes..try using the synchronizing for the run process for of the item in the action class.
    I shall try to provide you with the code changes, if can you please provide the back end code doing the job u said

  • Allowing only ONE instance of a PDF to be open

    I'm trying to work out a new system for proofreading and commenting in our business using the Comment and Markup tools in Acrobat 8 Professional. I'd like to allow multiple users on a network to interact and markup a PDF easily. I'd like to make it so that one of two things can happen:
    a) Only one instance of a PDF can be opened at once on the same network. That is to say, if a user on one computer opens a PDF, another user on the network on a different computer cannot open that same PDF at all, until the first user has closed it. Also, I'm not sure if the functionality for this would be implemented in Acrobat or the operating system (Mac OS X 10.6, to be precise).
    b) Multiple users can open a PDF simultaneously, and markups and comments from all users are somehow saved.
    I'm sure it's more of a possibility for a) to happen, but perhaps I'm wrong. Anyway, I hope there is a solution out there! Thanks for all your help!

    George,
    Thank you for your helpful reply. It does appear that Shared Reviews is capable of providing our business exactly what we need in this regard. I have found that Acrobat 8 does support Shared Reviews, but it only does so with Network Folder locations and WebDAV folders as locations for comment servers. I know how to get to the process to set up Shared Reviews, but not how to designate or set up a folder as a comment server using Network Folders or WebDAV. Unless you just so happen to know about that process as well, I will post a new thread, since the problem of finding a solution has been solved, but the new problem of implementing it has risen.
    Although using Acrobat X Pro to share PDFs and collaborate automatically using Acrobat.com sounds mighty tempting...

  • Only one account per mac

    Originally, i'd used my intel macmini with my music match login and everything worked fine.
    Then i created a new user for my wife and her different music match login on the macmini.
    Finally, I have tried to setup my 2011, 15" MacPro laptop to be my main mac with my music match but it refuses to scan new music rips on this laptop.
    When I changed the macmini to my wife's different music match account, I'd gotten some weird dialog saysing something like, You can only use one computer for your main music match and if you change you will not be able to use it for 90 days. This didn't make sense, then but now it does!
    How can I fix this? We have paid for two different accounts but only one (my wife's) now accepts any non-iTunes store music!
    I still have my thousand CDs if I have to re-rip all of my music but obviously, I don't want to if I don't have to.
    Am I SOL because I gave her my old MacMini???
    Is there some way I can deactivate MY account on her MacMini WITHOUT deactivating her account on that mac, as well? I don't want to make things worse!
    Do I have to delete the thousand album CDs and re-rip all of it, again?
    Somebody, please help!!!
    This is a real problem for our Family Pack MobileMe to iCloud transition! It just doesn't seem to work!

    joeatch2,
    Sync the iTunes Store content from your work machine to your iPod or iPhone.
    Authorize the home machine for your account. Connect the iPod or iPhone and go to the File menu and choose "Transfer purchases from "iPod or iPhone's name""
    Sync the home content to the iPod or iPhone.
    Authorize the work computer for the home account. Connect the iPod or iPhone and go to the File menu and choose "Transfer purchases from "iPod or iPhone's name""
    Hope this helps,
    Nathan C.

  • Only One PO per RFQ

    Hi Experts,
    In our process, all the PO's are created with reference to a RFQ. Can anyone have an idea on how to restrict the PO creation in the way that only ONE purchase order can be created by RFQ, meaning that after one PO is created with ferecente to RFQ #1, a second PO should not be able to be created with reference to the sane RFQ #1
    Is there any system messages or config that can be done?
    Regards.
    Joules

    You cannot restrict this, this is standard system behavior, there is no customizing setting in spro for this or a message type.
    You can consult ABAP consultant if there is any BADI or exit to control this function.

  • Only one pushdown per DF in BODI 11.7?

    We have a pretty complex ETL process with dozens of DFs that are liberally sprinkled with data_transfer transforms, added by the original developers with the intent of getting SQL to push down to the SQL Server 2005 where the data is stored. According to "display optimized SQL", it appears that most of them are not pushing down. In fact, I built a very simple DF based on sys.objects and sys.columns with one-column query transforms going to data_transfers then to another query transform that combines the two forks by selecting one of the columns that is then pushed to the target table. If I delete either one of the forks the other pushes down with an INSERT a SELECT b FROM c format, but when I have both forks in the DF, only one or the other will push down.
    It seems like there is some kind of configuration parameter that is limiting pushdown functionality but I can't figure out what it is. I've read up on things that prevent push-downs, messed with different configs trying to see if anything made a difference, and finally created an ultra-simple DF to demonstrate the problem. I'm out of ideas, and this is killing our performance- our big ETL process is running in 10 hours every day, but if we fixed this it might run in a third of the time.
    Thanks for your help.

    Odd. I have no problems viewing all the tracks on an album, whether I'm viewing by album or by artist. And I can't seem to force a situation where I get only a subset and a "next" button. What Mac model are you running, and what screen resolution?
    Regards.

Maybe you are looking for