Finding logged in users

Hey all i have a requirement to show who is on and offline within an JSF application. Seeing as SessionContext getIds() is now deprecated can anyone give me a pointer as to how to obtain this same data within the JSF framework?

Rather communicate through the attributes of the ServletContext.
HttpSessionListener:ServletContext servletContext = httpSessionEvent.getSession().getServletContext();Backing bean:ServletContext servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();

Similar Messages

  • How to find logged in user from Windows Registry?

    Hi,
    am developing a windows store 8.1 app using C# and xaml.
    In my app i want to find logged in user name from Windows Registry. 
    How can i get that from C# code?
    Anybody please help me.
    Regards,
    Santhosh

    from aa store app you don't have access to the windows registry.
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • Find Logged in Users on Previous day or any Particular date

    We would like to know if there is a way to find out <b>which users have logged in to portal on a particular day</b>. The Standard Activity report in User Administration <b>just mentions that of the current day.
    </b>
    Firstly, is there a configuration available to do so?
    Secondly, Is there an API available for this if there is no configuration.
    If these dont work, there exist some WCR tables which we can query..... I just want to know if any table stores the daily logged in details of a user in seperate records? Or does it update the same record...

    Hi Bharat,
    Security.log  is created on portal server for logging import security events such as successful and failed user logons, and creation or modification of users,groups and roles. Location in file system: <J2EE-installation>\j2ee\cluster\serverX\log\system\security.log
    Entries in the log file has the following format [TIME STAMP][SEVERITY][ACTOR][EVENT][OBJECT TYPE]=[OBJECTID][OBJECTNAME][DETAILS]   for Ex:  Oct 09,2007 3:47:25 PM | Info | <UserLogon> | LOGIN.OK | USER = ...| ......| TestUser01?
    TIMESTAMP values can be used to get the logged in user information during specified period
    Thanks,
    Madhu.

  • Find log on user employee number

    HI,
    How i can find employee number of user logon.
    in the system the user logon and employee num are diff.
    I try in SU01 with employee logon name but i don't find the number.
    Regards

    Hi,
    Check the infotype PA0105 or FM  HRWPC_BL_GET_USER
    Function module              HRWPC_BL_GET_USER
      Import parameters               Value
      USERNAME                        KA51151    ---- user logon id
      DATUM                           11-11-2008
      Export parameters               Value
      USR_PERNR                       00800841   -------- Pernr 

  • How to find out the users currently logged into ODI

    Hi all,
    How to find out the users currently logged into ODI Work Repository?
    Thanks.

    Hi,
    It stores all the final queries in work rep table i.e "SNP_SESS_TXT_LOG" and the column is "TXT".
    Here u can find all the ODI bkp process queries.Pls specify the SESS_NO for purtivular task u want to check which u can get this in ODI operator.
    I dont think so that it will keep the substituted value(because its implicit and temporary process) but it will keep all the default values in the table SNP_VAR_SESS and the column is "DEF_V".
    Thanks,
    katukota

  • How to find number of users logged into ODI

    Hi Experts,
    I am using ODI 11g in linux environment. I have created 15 users in system manager tab.
    My query is, how to find ODI11g logged in users list
    For Example, out of 15 users, 7 users are accessing ODI, how to fetch 7 users name list.
    Is there any query to find fetch the list
    Can any one please help me out
    Thanks in Advance
    Regards,
    PK
    Edited by: 917775 on Jun 21, 2012 11:52 PM

    Hi Rai,
    Thank you for the response
    I have verified already with v$session table, it seems how database user are login (lie it show the status as Active and InActive in status column) but I want to know the staus for how users are login into ODI.
    I have verified with SNP_USER table also, no uses of the.
    Any help on same
    Thanks in advance
    Regards,
    Phanikanth

  • Query or Profile Option to find Current logged in user in oracle apps R12

    Query or Profile Option to find Current logged in user in oracle apps R12.
    I want to get value of current user who is logged in to that particular session, based on the value of user_id or user_name returned i have to do a Forms Personalization.
    Plz help.
    Regards,
    Sadiya P.

    Hi Sadiya,
    do you have the answer for this? please send it to me because i am also have same requirement. so plz post it here....

  • Is there a way to find out the GUI version of a logged in user

    Hello all,
    SAP provides a method in CL_GUI_FRONT_END_SERVICES called GET_GUI_VERSION. This works fine for supplying the version information for the logged in user.
    Unfortunately, it doesn't have any input parameters to specify "ANY"  user name.
    I'm looking for a way to find out the gui version of all logged in users.
    Tables USR41 will give me a list of the logged in users
    I can then use USR21, ADR6 and ADRP to get more user info.
    But, I can't find a way to determine what GUI version each of the users is using.
    Does anyone have any ideas?
    Thanks
    Ed Baker

    We have done in a different way. ie we have used userexit SUSR0001 and coded using
    * Collect SAPGUI info of the user logging on
    call function 'RFC_SYSTEM_INFO' destination 'SAPGUI'
      importing
        rfcsi_export = i_rfcsi.
    Here i_rfcsi-rfcsaprl contains the version info of SAPGUI
    and updated this info in a custom table.

  • Identity User( Find Current Logged in User) Windows Forms

    I have implemented dummy code for logging in to a windows Forms Application using Identity (Owin Auth). part of my code is as follows:
    private bool validateuser()
    bool isAuthorised = false;
    Login1 log = new Login1();
    if (DialogResult.OK == log.ShowDialog())
    Splasher.Show(typeof(frmSplash));
    userC = log.usernameTextBox.Text;
    PassC = log.passwordTextBox.Text;
    if (userC == "" || PassC == "")
    count++;
    //isAuthorised = false;
    if (count > 0) log.LoginStatus.Text = "Empty passwords or usernames are not allowed. please try again";
    if (count == 2) MessageBox.Show("You have one try remaining");
    if (count == 3) { MessageBox.Show("You have exosted your tries application will now close"); Application.Exit(); }
    validateuser();
    else
    var userStore = new UserStore<IdentityUser>();
    var userManager = new UserManager<IdentityUser>(userStore);
    var user = userManager.Find(userC, PassC);
    if (user != null)
    var userIdentity = userManager.CreateIdentity(user, DefaultAuthenticationTypes.ApplicationCookie);
    isAuthorised = userIdentity.IsAuthenticated;
    userIdentity.AddClaim(new Claim("FullName", user.UserName));
    userIdentity.AddClaim(new Claim("User_Id", user.Id));
    return isAuthorised;
    else
    count++;
    //Application.Exit();
    if (count > 0) log.LoginStatus.Text = "You may have entered a wrong password or username. Please try again";
    if (count == 2) MessageBox.Show("You have one try remaining");
    if (count == 3) { MessageBox.Show("You have exosted your tries, application will now close"); Application.Exit(); }
    validateuser();
    count = 0;
    return isAuthorised;
    When the code works fine and is able to authenticate from the database. In the current form, I'm able to get the current user by using user.UserName or id by using user.Id
    How do I get to retrieve the name or Id of the current logged in user from another form. Please Help
    Thanks
    My ASP

    Type in c.Type is giving an error. could I be missing any important reference?
    My ASP
    Hi,
    Looks from Aram's code, I found a blog from Leandro Boffi.
    http://leandrob.com/2012/02/claims-identity-c-4-0-dynamics/
    Some similar code like Aram's. You should install
    Windows Identity Foundation and the companion
    WIF SDK
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to find the current users logged in.

    Hi,
    I have a problem in finding the current users logged into the database and the operations they are doing.
    If u know pls help me........
    Thanks.
    K.Vijay Choudary Reddy.

    hi vijay,
    this is the OracleAS Portal Content Management forum. Please post your database related question in the Database Forum:
    General Database Discussions
    thanks,
    christian

  • How to find already logged on user

    Hi,
    Can any one suggest an apporach to find the already logged on user.
    Does any other table store info on users other than v$session.?
    Thanks

    Try this
    Thsi you get to know the user, the box they are running on and the program are in use by the user
    select
    substr(a.spid,1,9) pid,
    substr(b.sid,1,5) sid,
    substr(b.serial#,1,5) ser#,
    substr(b.machine,1,30) box,
    substr(b.username,1,10) username,
    substr(b.osuser,1,8) os_user,
    substr(b.program,1,30) program
    from
    v$session b,
    v$process a
    where
    b.paddr = a.addr
    and
    type='USER'
    order by
    spid;

  • Is there a way to find how many users are logging on to my site?

    Is there a way to find how many users are logging on to my site at a specific time?
    Thanks in advance..

    Is it possible to use an EJB3.1 Singleton beans for this too? (instead of the application context)
    Or will this create a bottleneck because of the standard write lock? It wouldn't be thread safe to provide a read lock on a user_counter increment method?

  • Where can I find log files for users logging into network homes?

    We're running an open directory master and are using AFP on another server to host our network homes.  I was asked to find a log of users logged into their network homes on a specific date and I'm starting to wonder if that's actually a log that exists.  I've checked the OD logs and in one of the password logs I can see users have authenticated but it doesn't say specifically to what (so it just lists they logged into something).  The AFP logs just show specific files being accessed without usernames.  So what am I missing?  What log would I check?
    Thanks for your help!!

    File Zilla is a dedicated ftp client that you use to upload your published web site to your server.
    I would suggest that you perhaps consider using Cyberduck instead as this might be easier.  Cyberduck is a dedicated ftp client in the same way that File Zilla is.
    To be able to upload what you need is your published website.  Open iWeb and select the site that you want to publish and then select publish to a local folder and your site will then be published to your desktop.  You then upload this to your server using Cyberduck or File Zilla.

  • How to find number of logged in users on NW04s?

    Ah, the fantastic search on sdn!!!
    I'm sure this has been asked before but I can't find it... (either the question or the answer)
    We have a J2EE application on NW2004s and I want to find how many users are logged on to the system.
    (it's not EP)
    Any quick answers will be appreciated and awarded.
    thnx
    kev

    Hello,
    to get list of active user in J2EE start telnet
    telnet <host> <telnet port>
    log in as j2ee_admin, administrator or with any user with administrator priviledges.
    to get list of available server nodes use command LSC.
    You can choose any node by using jump command followed by node id.
    execute for each node following commands:
    add servlet_jsp
    http_sessions full
    List of telnet commands:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/4e/6e723964c11d45ad3aeca71482f084/frameset.htm
    Drabik Radovan

  • HOw to find how many users into into r/3 system  and when the log in

    HI
    I need to find who are others log in to R/3 system?
    HOw to find how many users into into r/3 system  and when the log in

    Hi,
    You can also use transaction code AL08 to see the list of users logged on with the transactions they are working on.
    Regards,
    Venkat

Maybe you are looking for