How to keep track of the users who are all currently logged in

Hi All,
I have basic knowledge of Session and Servlets. I am wondering how to keep track of the users who are all currently logged in. There should be some way of achieving it.
I thought of it and come up with having an Application variable that hold it when ever a user successfully logged in.
Thanks in advance for any reply.

You can do this by keeping data in a static veriable in a some class of yours. The variable will need to be a collection.
Whenever a user loogs in to the site a servlet/jsp should put the users information in to the collection and when logs off or when the session expires the entry should be take off.
You can achive this by storing the velues in a some sort of a week collection where the entries are automaticaly removed when all the other refferences to the entry goes out of scope.
You might need to read bit about java.lang.ref package and WeekReference
Or you can make the entry in the collection contain the last time that the user visited any of the pages and a thread can run time to time and clean up the older entries which have timed out

Similar Messages

  • Message tracking log of internal users who are all sent the mails to external domain

    Hi ,
    How can i get the message tracking log from internal users to external users?
    We need the report of internal users who are all sent the mails to the external domain
    Regards,
    Sankar M
    Sankar M http://messagingdevelopment.blogspot.in/

    Sankar, your outbound send connector has an address space of *. So when you run "Get-SendConnector", you will see something like the following:
    Identity                                AddressSpaces                          
    Enabled
    Unix System Connection                  {SMTP:*.domfreebusy.contractor.hunti... True
    Outgoing SMTP Connector                
    {SMTP:*;10}                             True
    Mailbox Journaling Connector            {SMTP:pdwastap01.huntington.com;1}      True
    The middle one with the {SMTP:*;10} in my case (you may have a different number than 10 in yours) is my outbound connector. So yours will show an address space of {SMTP:*;<some number, 10 is the default>}. HTH ...

  • How to keep track of the changes done in ALV GRID Report

    Hi Experts,
    how to keep track of the changed record in ALV GRID Report. how to set the field to be editable even for the entire row also. Can anybody guide along with code also?...
    Valuable answers will be rewarded.
    Thanks,
    Satish.

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • How to keep Track of the wagetype Changes

    Hi Experts,
    How to keep Track of the Changes after changing the wagetype values.If any body has made changes to the existing wagetype, how do we keep a track of what changes has done, is there any standard Tcode through  which we can get the information.
    Thanks in advance,
    Regards,
    Magesh.S

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • How to keep track of the sequence of the BSP Pages being invoked.

    Hi,
    How to keep track of the sequence of the BSP Pages being invoked.
    I have a BSP Page A.htm. There are two other pages B.HTM and C.HTM in the same BSP Application.
    The page B.HTM has a link A.HTM. The page C.HTM also has a link A.HTM. On clicking  these links the Page A.HTM would be invoked. Is there any way to keep track which BSP Page  (i.e B.HTM or C.HTM) invoked the page A.HTM.
    Any input on this Regard would be of great help.
    Thanks and Regards,
    Pavithra

    Hi Pavithra,
    Declare in page attributes:
    appl_url type string
    In the onClick event of the link that calls the A.htm page , use:
    call method runtime->get_url
    receiving
    URL = appl_url.
    Now appl_url contains the url (also name) of the page that invoked A.htm .
    Hope it helps.
    Anubhav.

  • Tracking down the user who updates a PDP (Project Detail Page)

    Hi guys,
    I have a custom field called Project Status that is used in some PDP in Project Server. When users update this field, we need to know who did the update. Is there a way to track down the user who populated some info on this field? Does Project Server do
    an audit of some sort on these kinds of things?
    Thanks.
    Regards,
    Kwazi

    Hi Mike,
    Thanks for the response. I want to write a stored procedure to script this though. Do you know which tables holds information about  Queue
    jobs(?
    Thanks.
    Kwazi

  • How to skip approving steps for users who are also approvers?

    We have a business need to be able to skip the approving steps for the users who are also approvers.
    For this following steps were followed :-
    1) Open .task file and go into the Assignment tab. Double click on the performer box within the routing slip, this should open the "Edit Participant Type" editor. Expand the "Advanced" section and place a check next to "specify skip rule", then click the edit icon to the right. Now enter an XPath expression that will test whether the current user is equal to the task creator.
    2) We used - isUserInRole XPath function in the "Identify Service Functions" dropdown - first param to function is the userID, the 2nd is the role name.
    We tried with hardcoded userID as well as by using
    ids:isUserInRole(/task:task/task:systemAttributes/task:updatedBy/task:id,'California')
    where 'California' is the group name (as one of the forum threads told this function works with groups).
    We also tried with swimlane roles(using bpm.getPerformer() function) but it does not work either.
    Please let me know if any one has any solution to this problem.

    session as DirectorySession = DirectorySession.currentEngineSession
    dirHum as Fuego.Fdi.DirHumanParticipant = DirHumanParticipant.fetch(session : session, id : "myUserId")
    result = hasRoleAssigned(dirHum, role : "Approver")Give that a try...
    HTH,
    -Kevin

  • Find the Users who are Currently logged in

    Hi SDNers,
    I have Admin rights. Is there any way to find the Users who are Currently logged in?
    Please suggest.
    Thanks & Regards,
    Priti Rani Patnaik

    Hi Priti,
    Check the Connections table under Admin node which shows the users who are currently logged in along with the application users are accessing.
    Regards,
    Jitesh Talreja

  • How to keep track of the filter/choices in a dashboard

    Hello all,
    I have created an analysis which contains the following columns: YEAR, TRANSACTION DESCRIPTION, NO OF TRANSACTION
    I have added the above analysis in a dashboard tab. When I click a particular TRANSACTION DESCRIPTION it can get further drill down in time hierarchy like below:
    YEAR     QUARTER     MONTH     TRANSACTION DESCRIPTION     NO OF TRANSACTION
    2012        Q1               JANUARY                      X                                        10
    2012        Q1               FEBRUARY                   X                                        20
    2012        Q1               MARCH                         X                                        30
    I was wondering if there is way to keep track of the drill-down in the analysis or dashboard, for example
    2012> Q1> JANUARY    
    so that the user can know he is exactly.
    Thanks in advance for your time.
    Konstantina

    Hi Konstantina,
    Yes You can do like that 2012-->q1-->January
    Steps:
    1. Create time dimension hierarchy as by following like Total--> year--> Quarter--> Month--> if you need you can keep Description.
    2. Drag the Year column from period dimension table to the dimension hierarchy of year.
    3. Drag the quarter column from period dimension table to the dimension hierarchy of Quarter.
    4. Drag the month column from period dimension table to the dimension hierarchy of month.
    5. Drag the hierarchy to period dimension table in presentation layer.
    In Answer side keep as it as Default: drill in primary and secondary interaction under column properties.
    For more refer : http://mkashu.blogspot.com
    Regards
    VG

  • Find out the users who are performing operation on a table - point of time

    Can anyone help me to find out who is performing a table level operation on some table at a time. For ex., table "emp" at a point of time who are all the users connected and accessing this table as i am getting a "resource busy" when i try to drop an index.
    Regards,
    G.Santhoshkumar.

    You could try something like the following :
    SYS@db102 SQL> select username, sid, serial#
      2  from v$session s, v$locked_object l, dba_objects o
      3  where s.sid = l.session_id
      4  and l.object_id = o.object_id
      5  and object_name = 'EMP';

  • How to keep track of the status of a spry slide effect from page to page.

    Hi All,
    I'm using a spry slide effect on a simple menu system.
    Lets say I have a home, gallery and about us page.
    I currently have the spry effect occurring with "body onload" only on the Gallery page to slide down extra sub menus only when the user lands on that page.
    My problem is that I would like the slide effect to close when having left the page and landed on either of the other two pages. I can close the slide with body onload again but obviously it will close every time regardless of whether the effect was open or closed to begin with.
    I know nothing about Javascript or the Spry Framework and therefore would like to know if there is a simple way to track whether the effect was open or closed from page to page?
    Ideally I would like the effect to only open when landing on the gallery page and closing only if the previous page was the gallery page and the effect was open. For all other instances the effect should not be actioned.
    I thought that there would be a way seeing as there is a toggle option with this effect. How does the effect know when it was previously open/closed and is there a way of parsing that in the URL so that the next page knows what to do?
    Any help would really be appreciated.
    Thanks

    Sorry, but what you wish to do, will require you to at least have a basic understanding of JavaScript and setting/unsetting cookies.
    For a basic introduction to using JavaScript try:    http://www.adobe.com/devnet/dreamweaver/articles/js_for_designers.html
    HTH
    PZ

  • How do keep updates on the users online?

    right now i am developing a chat program that uses applets, users login in and out. i am putting the list of users on a database and my problem is that i am using a list to know the online users, and i am asking for suggestions how, since i have to update the list of the users in each applet that runs on chat...

    You could have the client list use a "stay-alive update" system. This system is pretty basic in design. The client will contact the server every few minutes to determine weather or not a user is still online, if they are then the user stays in the list, if not, then the user is removed. Between the time a user logs off and the list is updated, if a user tries to connect to another client the communication at least on the server side (better if it is on the client side) is to force a check on the status of the user prior to contacting.
    Think of the TCP/IP protocol and that should help you.

  • Keeping track of the user's visited links

    Imagine a website that enables you too see which of its pages
    you've already visited. Not only by displaying different colors on
    the links..
    I am trying to make a diagram that shows where the user was,
    which pages were visited first and which were visited last.
    any sugestions...? maybe with php?
    cheers

    The traditional way to do this is with a redirect. Basically you have a servlet or JSP that will be called anytime anyone clicks on a like. It contains a redirect parameter. For example, your HTML might look something like:
    <a href="http://www.yourdomain.tld/redirector.jsp?linkid=1234" />Then, in redirector.jsp you look up in, likely, a database what linkid 1234 is. Assuming you find it you update your database with whatever information you want about link 1234 and send a redirect to the URL that link 1234 is for.

  • Can I monitor the users who are logged in Domain Controller?

    Can I monitor which users are logged in the Domain Controller? Is there any features or hidden in Windows Server 2008 R2?
    it may be funny.but i just want to know.
    Thanks in Advance

    I am using a bat script assigned on the user Logon, this script will send you a notification each time user login 
    User Configuration --> Windows Settings --> Scripts (Logon/Logoff)
    download the exe from here and save it to shared folder(\\server\folder\)
    http://caspian.dotconf.net/menu/Software/SendEmail/
    (make sure to save it as a .bat)
    \\server\folder\sendEmail.exe -f [email protected] -t [email protected] -u User Logon -m User %USERNAME% has logged onto %COMPUTERNAME% on %DATE% at %TIME% -s smtpserver.mycompany.com:25

  • Sun DS version 5.2 deactivate users who are haven't logged in since 6months

    Hi,
    I'm using Sun DS version 5.2.
    I want to deactivate users who have not logged in since 6 months.
    How can i do that?
    Btw please note that Sun DS version 5.2 and so there is no attribute to track last login of users.
    Thanks.

    Hi,
    unless you know that after the login the user modifies any other attribute in his profile, so it may change the modifytimestamp, then there's no other way of getting such information querying the DS instance.
    In that case, I think a 'dirt' alternative could be to 'parse' the log files ... looking for the binds :(
    HTH,
    Marco

Maybe you are looking for

  • I woke up this morning and google and gmail no longer work in firefox. I get the endless loop error

    I woke up this morning and google and gmail no longer work in firefox. I get the endless loop error. I have the latest version of firefox and it is running under win 7 pro. it was working great since I installed it 3 weeks ago and I use it every day.

  • Easily managable website

    Would someone please help me with some advice. As I'm a Flash Designer I'm not to good with advanced web coding. I have a client who sells tickets on behalf of a concert venue, he would like me to design him a web site that he can use to advertise hi

  • Purchase Order Printout only after po release

    Dear All, Plz help me with the below mention problem : i donot want the purchase order to get printed untill the po get released completely, plz suggest me required configuration need to be done regarding this regds joy

  • Can we do something logically  like #{#{varName}}  in JSF-2.0?

    Hi all, Assuming (1)I pass two ui parameters <ui:param name="paraName1" value="paraContent1" /> <ui:param name="paraName2" value="paraContent2" /> to a Composite Component cc (2)The ui parameter names "paraName1", "paraName2" are stored in another be

  • Asset Manager Demo v1.1  Error during install

    Installing Asset Manager 1.1 to Apex 3.2 on Oracle 11.1.0.6.0 All supporting object scripts run OK except for one. The error reported is: begin eba_asset.create_sample_data; end; ORA-01830: date format picture ends before converting entire input stri