How to track clients idle time and force to Login View

How can I force clients to the Login View after a period of idle time ( 1 hour). My mobile application consist of many views and need  the time out to work from any view. Your assistance is appreciated.Using Flash Builder 4.5 and AS 3.0.
I was able to make it work using FlexEvent.Idle to determine the inactivity. But it only works when I am on the second view, if I go deeper (third view) it fails. Here is the code I am using and the error I get
protected function view1_creationCompleteHandler(event:FlexEvent):void
     this.systemManager.addEventListener(FlexEvent.IDLE, userIdle);
private function userIdle(e:FlexEvent):void
   if(e.currentTarget.mx_internal::idleCounter == 200)
    //do something!
    navigator.popToFirstView();
ERROR MESSAGE
++++++++++++++++++++++++
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at views::MainMenu/userIdle()[C:\Documents and Settings\spences\Adobe Flash Builder 4.5\EmployeeLogin\src\views\MainMenu.mxml:89]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/idleTimer_timerHandler()[E:\dev\4.5.1\frameworks\projects\fram ework\src\mx\managers\SystemManager.as:3292]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Message was edited by: Stewart TVDSB

Hi Nadeem,
You can find the max session idle time in table APEX_040000.WWV_FLOWS, attribute MAX_SESSION_IDLE_SEC .
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • TRACK SYSTEM IDLE TIME

    Hii Guys,
    I am working on a client server architecture based project named "ATTENDANCE TRACKING SYSTEM".
    For this, I need a java program that can run in background(without any interface) and track system idle time on client machine.
    The idle time is the time elapsed since last key was pressed or since last time mouse was moved(whichever is later).
    So that, i can use the output of that program to track the idle time of the client machine.
    I searched a lot, but everywhere i found to use JNI. But i dont know anything yet about JNI.
    Please help me out...

    Prince_2188 wrote:
    Thanxx 4 ur reply Mr. Jschell
    But the problem here is that i will have to do it in JAVA, as i have been asked by Wipro Technologies to do it in JAVA.Probably not a good idea to name names.
    The requirement is stupid.
    And given that the requirement is not negotiable you might want to review the contract/requirements before going further. Because using JNI is not using java. So what makes you think that that doesn't break the contract?
    >
    On Internet, i found that doing this task purely in JAVA is not possible and i will have to do it using JNI and C++.
    But i dont know how to use JNI and moreover i could not find coding for the same on Internet.
    Secondly, i m not aware of the functions in Windows API that can help me out in this regard....
    Go to a windows site and ask about what API one would use to monitor idle time. Do NOT mention java. Just ask about the windows API.

  • How to get system idle time

    Hello Sir,
    I am Udhaya. I don't know how to capture system idle time using java. Please any one help me how to get system idle time. Any class is available in java to get idle time?
    Thank in advance
    Udhaya

    jwenting wrote:
    DrLaszloJamf wrote:
    jwenting wrote:
    the moment you ask the system for its idle time that idle time becomes 0, so just returning a constant value of 0 would always yield the correct answer.But when you don't call this constant method the value it would return is wrong. This is the sort of thing that keeps me up at night.Except of course that when you don't call it it doesn't return it and therefore still behaves properly.
    Or were you thinking of philosphical problems like "what does a method do when it's not called?"?Actually I was trying to see if I could get the OP to say boo to a goose.

  • I have the wrong apple ID on my iPhone 4 for face time and iCloud.  I have the right apple id for iTunes store.  How can I can face time and iCloud apple id?

    I have the wrong apple ID on my iPhone 4 for face time and iCloud. It has my husband's ID because he synced it to his one time.  I do my apple id for iTunes store.  How can I can face time and iCloud apple id?

    iCloud:
    Settings > iCloud > Delete Account then lock in with your Apple ID.
    FaceTime:
    Switch Settings > FaceTime > FaceTime OFF and switch back on with your Apple ID.

  • My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X 8 from internet, is there any where can I get offline download of OS.

    My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X mountain lion from internet, is there any where can I get offline download of OS file where I can install directely OS X Mavericks.

    Hi, original poster here. I did not realize this would generate more discussion so I never checked back. I still had my warranty, so I took it to the store and got it repaired. The original problem I had was a screen with this icon flashing when I attempted to boot it up:
    When I took it to the store, they told me that my computer was unable to communicate with the hard drive. I had this same problem three times in two months where this screen reappeared. Each time I went back to the store and they said the cause was different, but they were all hardware issues that physically made it impossible to communicate with the hard drive. After the third time, they simply replaced my laptop and I haven't had the same problem.
    So in short: The reason you can't reinstall or move anything when you encounter this screen appears to be because nothing can communicate with the hard drive in the first place. You can't reach the disk or anything on it. So I don't believe it's possible to do anything besides take it to a physical store and have it fixed.

  • How can i get the time and result together show in one Array or in Cluster?

    hello everyone i am a new user .I want to get the time and voltge form a Generater. How can i get the time and result together show in one Array or in Cluster?When i selecte the first(or third...) result then in the front panel display the time and the voltge.Thank you!
    I post the time and voltge NOT together photo
    Attachments:
    12345.GIF ‏54 KB

    You can create an array of clusters with one element being the time and the other being the voltage, like so (using the "Get Waveform Components" function):
    Message Edited by smercurio_fc on 10-17-2007 03:15 PM
    Attachments:
    pic.PNG ‏11 KB

  • How to get the start time and date

    Hi everyone! I have a question ,who will be glad to help me! Thanks in advance!
    As we know ,when we finish the UUT test ,it generate report . The report format maybe like"SeqFileName_Report[Time][Date]_00001.xml"
    My question is"how can I get the [Time] and [Date] in the test sequence"

    See this post.
    How To Display Time Information in Report/Results?
    http://forums.ni.com/t5/NI-TestStand/During-a-test-how-can-I-find-the-start-time-and-date-of-that/td...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • How to measure query run time and mnitor performance

    Hai All,
                   A simple question. How to measure query run time and mnitor performance? I want to see the parameters like how long it took to execute, how much space it took etc.
    Thank you.

    hi,
    some ways
    1. use transaction st03, expert mode.
    2. tables rsddstat*
    3. install bw statistics (technical content)
    there are docs on this, also bi knowledge performance center.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    BW Performance Tuning Knowledge Center - SAP Developer Network (SDN)
    Business Intelligence Performance Tuning [original link is broken]
    also take a look
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/31b6b490-0201-0010-e4b6-a1523327025e
    Prakash's weblog on this topic..
    /people/prakash.darji/blog/2006/01/27/query-creation-checklist
    /people/prakash.darji/blog/2006/01/26/query-optimization
    oss note
    557870 'FAQ BW Query Performance'
    and 567746 'Composite note BW 3.x performance Query and Web'.

  • How do I use Primary Key and RowID in Materialized View Logs and MVs

    How do I use Primary Key and RowID in Materialized View Logs and Materialized Views????
    I don’t understand in the Materalized View Logs the diference between Primary Key and RowID. Besides, I could choose both Primary Key and RowID.
    When I have to use RowID?? Why?? And Primary Key??? And both, Primary Key and RowID????
    Thank you very much!

    Yes, I have already read it...
    But for example I don’t Understand:
    This is the example 8-1
    CREATE MATERIALIZED VIEW LOG ON products
    WITH SEQUENCE, ROWID
    (prod_id, prod_name, prod_desc, prod_subcategory, prod_subcat_desc, prod_
    category, prod_cat_desc, prod_weight_class, prod_unit_of_measure, prod_pack_
    size, supplier_id, prod_status, prod_list_price, prod_min_price)
    INCLUDING NEW VALUES;
    But if I create a Materialized View with TOAD if I choose a KEY field I receive the error:
    ORA-12026: invalid filter column detected
    Then I have to take out the Key (in the above example prod_id)
    And then the script is
    CREATE MATERIALIZED VIEW LOG ON products
    WITH ROWID, SEQUENCE, PRIMARY KEY!!!!!!!!!!!!!!!!!!!!
    (prod_id, prod_name, prod_desc, prod_subcategory, prod_subcat_desc, prod_
    category, prod_cat_desc, prod_weight_class, prod_unit_of_measure, prod_pack_
    size, supplier_id, prod_status, prod_list_price, prod_min_price)
    INCLUDING NEW VALUES;
    I have PRIMARY KEY in the definition (I don’t choose it) and I don’t have the prod_id field
    Why is it????
    Note: If I execute the script to create the MV Log manually the PRIMARY KEY option NO IS in the script and the prod_id field either is in the script.
    And on the other hand,
    What is this:
    CREATE MATERIALIZED VIEW LOG ON sales
    WITH ROWID;
    CREATE MATERIALIZED VIEW LOG ON times
    WITH ROWID;
    CREATE MATERIALIZED VIEW LOG ON customers
    WITH ROWID;
    These MATERIALIZED VIEW LOG contain any fields????
    Or it contain the primary key fields of this tables (sales, times and customers)??? Then, Why is it ROWID instead of PRIMARY KEY????
    Thanks!

  • Session Idle time and public web pages access

    Hi
    The idle timeout can happen when authenticated user requests only public web pages on the site (pages in notenforced_list) . Following request to the protected pages is possible only throw the annoying login page.
    I need to configure AM to track access to the public web pages for authenticated users. And so, idle timeout will only possible, if authenticated user actually not sends any requests to the site.
    Please give me an ideas, how it is possible.
    Only one bad solution i know:
    To put hidden image to the all public site pages, which is protected by policy agent. Every request to the public pages will be enforced by policy agent (throw request to the hidden image). And there is no idle timeout when authenticated user actually still active on the site.
    Roman.
    PS: AM 7.1 update 1 on Sun App Server 8.2. Web site on the Sun Web Server 7

    We are find a trouble.
    The answer is for history:
    The idle timeout can happen when authenticated user requests only public web pages on the site (pages in notenforced_list)The idle time can happend only if Policy Agent has no mapping (profile or session) attributes to the HEAD or COOKIE to the HTTP request. If at leats one attribute (profile or session) is mapped, then all work propertly. There is no Access Manager Session Idle timeout in this case.

  • How can I display date+time and not the point number in excell?

    Hi everyone,
    Could anybody tell me how I can save date + time to a file, so that  I can display on a diagram(excel) : date+time in (ox) and data (oy)? :
    My program sets in (ox) the point number and not the date+time....( although  date and time are written correctly in the column...)
    Any help would be great,
    Thanks,
    regards,
    Marc

    hi there,
    excel uses 01.01.1900 00:00 as the time offset, LabVIEW uses 01.01.1904 02:00, so you can't display the correct datetime in excel when you write the time as a fractional number of seconds from LabVIEW. you must format the datetime in LabVIEW to a string and write that to the column. use the "Format Date/Time String" - function and for example "%d.%m.%Y %H:%M:%S%3u" as the format string (see the functions help for more examples). you also could format your data to a string using "Format Into String" - function and write the file as a 2D string array. the decimal point you have to use depends on your system and its settings, but you can specify the decimal point in the Format string like "%.;%f" (means fractional number with point as decimal point).
    best regards
    chris 
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How to track frequency of usage and variant name

    Hi experts,
    Our team currently involved in Kaizen project. One of the enhancement we are looking at is tracking frequency of usage and variant name created. For example, for the payroll transaction, we created  a few variant (a,b,c,d). Is there any standard report we can check-which variant we use most; who created the variant, last change, last access,how many time we use the variant.
    Thanks in advance

    There is a table VARID where you can see who created the variant plus the date and time. This table also has the changed by details again with date and time.
    If the payroll transaction is run with a job i.e. sm37 then from there you can click on "step" and get the variant name.
    Please mark helpful or correct answers.
    If you can give me more detail of what it is you required then let me know.

  • How to handle user idle time in portal?

    Hi Gurus,
    We want to make the portal and its content area use the same session time-out on client side. When it reaches the maximal user idle time, let's take 30 minutes for example, it will automatically log out the portal.
    There is already a wonderful solution to handle portal user idle timeout on client side: https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/epSnippet-Portaluseridletimeoutforlogoff-custom+javascript
    But it does not meet our requirement exactly.
    We want to reset user idle time to zero not only for 'urn:com.sapportals:navigation' event, but also for 'onclick', 'onkeypress' and 'onmousemove' events in portal header/footer and content area.
    Is it possible to realize our requirement? Or, is it possible to handle the 'onclick', 'onkeypress' and 'onmousemove' events from portal content area in portal header level(masthead)?
    Thanks,
    Bobby

    Hi Bobby,
    We have the same requirement and need to subscribe to button click and other such events as well.
    Would you let me know if you have implemented such a solution ?
    Regards,
    Melwyn

  • How to get FMS server time and date

    hi,
    i m working on a customer support chat application. There is
    neccssary for me to get the FMS server time and date, bcoz
    depending on the server time and date the client instances recive
    different messages.
    i looked at date() function on FMS server, but it returns
    user PC time ( not FMS server time).......
    so i there any way to get FMS server date and time??
    thanks in advance
    shrikant

    See this post.
    How To Display Time Information in Report/Results?
    http://forums.ni.com/t5/NI-TestStand/During-a-test-how-can-I-find-the-start-time-and-date-of-that/td...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • To check client idle time

    Hello friends
    My enviroment is Oracle 8. I have 2 oracle users.
    On these 2 users approx 150 clients are feeding data.
    I want help in the following :-
    1. If machine is idle for 10 minutes, it should be
    logged out and this information is inserted in a table.
    Idle means no keyboard/mouse operations. But if it
    is a backgroud process, Report generation or Form
    process, it will continue.
    Thanks in advance.

    thanks. But it was not helpful. as i said that I have only
    two users and the users are accessed by morethan 150 session
    (application user). The profile will restrict only user. I am not sure it will also check for sessions. I want to check idle time of these clients users. I mean to say if the machine using the users is idle for more than 10 minutes then it should logout from the forms and its entry should go to a table. I think it will clear my problem to you.
    thanks and waiting
    You can use profile to do it:
    create profile user_prof limit idle_time 10;
    alter user <username> profile user_prof;
    Then create a trigger:
    create or replace trigger trg$blo
    before logoff on database
    begin
    insert into <table_name>
    values (user, sysdate);
    end trg$blo;

Maybe you are looking for