JSP Realms - finding who is logged in

Hi there,
I have some JSP pages using Realms to restrict access to certain users.
Is there some code that will allow a page to find which logged in user is viewing it?
Thanks!

The HttpServletRequest offers you the getRemoteUser() and getUserPrincipal() methods for that.

Similar Messages

  • How  to find out list of users who has logged into webtools

    Hi All,
    From a database administration and monitoring traffic point of view we want to know who has logged into our web tools web site for a given period.  Is there a easy way to have this information. basically user ID , date and time are info we need. (need all users - with or without orders)
    any ideas welcome.
    Regards
    David

    Hello,
    The easiest way to accomplish this is by creating a report.
    Use the SQL query
    SELECT     UserID, LastVisitDate
    FROM         Users
    ORDER BY LastVisitDate DESC
    And a template that looks something like this:
    <html>
    <head>
    <title>%%ReportName%% - %%Today, {0:d}%%</title>
    %%StyleSheet%%
    </head>
    <body>
    <center>
    <h1>%%ReportName%%</h1>
    <table width=800 cellpadding=1 cellspacing=0 border=1>  
    <tr>
    <td><b>User ID</b></td>
    <td><b>Last Visit</b></td>
    </tr>
    <section name="uservisit">
    <tr>
    <td>%%UserID%%</td>
    <td>%%LastVisitDate%%</td>
    </tr>
    </section>
    </table>
    </center>
    </body>
    </html>

  • Who has logged into SharePoint 2007 in 2014?

    We are going to be decommissioning our SharePoint 2007 server (running on Windows Server 2003 SP2 machine) very soon. There aren't a lot of people that use our 2007 instance any more but I will need alert all of the users who do still use it that
    we will be decommissioning it that way they can make sure their pertinent data is moved or saved elsewhere.
    I have tried using the Usage Summary to get a list of all of the users who have used SP 2007 this year but I am not finding it very helpful. I have checked the Event Viewer >  Security logs, but it is a lot to go through and the native filter is
    not dynamic enough.
    Can somebody recommend what I should use to compile a concise list showing who has logged in and when?
    Thank you in advance!

    within LogFiles is a subfolder for each IIS web application. Match the webapp ID to the subfolder. Each log file will include the HTTP request (specifically the HTTP GET request), and the authenticated username (if any).
    You should be able to pull a log file into Excel relatively easily (columns are separated by spaces).
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to find who has deleted the query in Production system

    I Experts,
    I have an issue. Someone has deleted one query in Production system.
    How can i find who has deleted the query??
    I searched the ans for the same i the below threads :-
    Query deleted in production
    How to find out who has deleted the production Query
    But it didn't help me as i couldn't understand how to use the transaction SLG1.. Can Someone please explain me how can i find out who has deleted the Query..
    Regards,
    Pavan Raj

    Hello,
    Please, remember the date on which date the query has seen last time  in the production server. You can use the last date in the From date and To date would be current  date and execute the SLG1 tcode. It would list you all the logs in the Object text you can search for BEX Query designer and sub object text column you can check for delete logs options.
    Double click on the object will list you the query and name. From the user column you can find who has deleted the query.
    Might be this can help you for analysis.
    Thanks
    Geeta Sharma

  • How do you find who's on your network

    I have 6 machines on my AP network for my office & home business. I do not have it password protected. But I have a neighbor who says he can pick up my signal on his laptop. Is there a way to find out who's machine is on your network?

    I strongly recommend you password protect your network right away. It doesn't matter who is on your network if even one person is unauthorized. That person could easily get into private data through your network, or simply piggy back onto your Internet connection for a free ride.
    If you click on the Network icon in your Finder window, it will tell you the names of all the computers connected together on the local subnet. However, an intruder need not network with the other machines in your system to take advantage of your Internet connection. For example, I have 2 Macs using the Net via my base station. They are not necessarily connected to each other. I can use the Net with both machines at once, but until I actually use Network to connect them together I can't access one machine from another, and I can't see whether or not my other machine is using the Network or not.
    On top of that, I have to have Personal File Sharing turned on to share files between 2 machines. You can change these settings in Sharing under System Preferences. That can keep intruders out of your system, but may not tell you who is logged into your subnet unless they Network, or if they have file sharing turned off on their system.
    I'm not sure if there is a way to see if you have any freeloaders via an IP address.
    Theala

  • Can you tell who is logged onto Hyperion Analyzer?

    In Wired 4 you used to be able to look at the Wired Application window to see who is logged onto Wired. I have just upgraded to Analyzer 5.0. Anyone know how I can find out which user is on the system?Also, is there a log I can look at to see which users were on the system the past few days?Thanks folks.Cornelius.

    You can run the Hyperion Analyzer Analysis Server Console from your browser. Cheers.

  • Who is logged in currently in Outlooksoft (BPC) v 4.2

    Are there any log files in Outlooksoft 4.2 that show  who is currently logged or to see the last time each user logged in?  In the private publications folder, debuglogic.log shows you the last time a user submitted data, but it doesn't tell you the last time each user logged in to the system, which is what I'm looking for.
    Best regards,
    Greg

    Hi Greg,
    There is no out of the box functionality in 4.2 AND 5.1 to see who is online.
    In V5 there is an option in admin called 'Who is Online', but this option will only show you who have logged on to Admin and NOT to MS Office. so you can't see the endusers who have logged in (still hoping for some improvement here).
    There is however one some kind of workaround to see who have logged in over time:
    The IIS log will log all users that have logged in. I imported this file into a SQL table and using some Query statements I could find out who logged in and even to see what connection type they were using (in 4.2 we had something called 'http' users, we used this method to search for these kind of users).
    Hope this helps,
    Alwin

  • Finding who has dropped th epartitions

    Hi,
    Can some body help me on how to find who has dropped the partitions in a table in oracle 10.2
    Thanks
    Lbn

    Partitions can only be dropped by a schema and code that have permissions to drop those objects. So given the security model you have on that database, nothing incorrect was done.
    If this happens not to be the case, and partitions were dropped "illegally", then the security model used is flawed.
    And the first action should be identifying the flaws in the security model and fixing these - properly. A witch hunt for an offender will not fix or resolve anything.
    As for finding the "offender" - unless you have auditing enabled, or archive logs to mine, there is no way to identify the "offender".
    Rather fix your security model first. That is what the problem is. Not the fact that an "offender" (accidentally) manage to wipe partitions.

  • How do I find who created a particular material master record?

    How can I find who created a material master record when it was created?  I've looked in the item changes log and all it shows is changes, not when the material was created.
    Thanks!

    Hi,
    You can use SE16 + MARA. Field ERSDA will show you the desired date.
    In MM03 there's an icon: white 'i', background blue. Please click on it.
    BR
    Csaba

  • How to find who deleted user account

    Hi there,
    I need help from Security Specialists to find out who deleted user account in past in a R/3 46C system.
    I have already tried below methods and checked previous posts in this forum but no use -
    1. SUIM
    2. SM20
    3. SM21
    4. Report RSTBHIST
    5. ST03
    6. STAT
    7. SECR
    8. SM19
    Thanks in advance.

    Thanks Ben,
    I tried and got output as below -
    Clien     User     Modificati   Modifica   Changed by    PROFS
      900          304902       03.02.2007   15:11:23   107901            D
      900          304902       15.05.2007   13:39:42    AMOL            C ZRFCCPIC__
      900          304902         08.06.2007   12:28:56   AMOL            M FSTSTKCOUN  ZRFCCPIC__
    Which means user was last deleted on 03/02 by 107901 and then I recreated it on 15/05 and maintained on 08/06.
    But again today I found this user missing and thats the reason I 'm desparately looking for delete log.
    I didnt find latest deletion log anywhere.

  • How to find who  dropped the table

    Hi Gurus,
    Is there a way beside auditing to know who dropped the table,i know we could use logminer for that but the thing is that i don't have supplemental logging turned on while the table got dropped.
    I think we need to have supplemental logging enabled to find who did what even for the DDL correct?
    Is there any way i can find who dropped the table?
    Thanks

    user9097501 wrote:
    Hi Gurus,
    Is there a way beside auditing to know who dropped the table,i know we could use logminer for that but the thing is that i don't have supplemental logging turned on while the table got dropped.
    I think we need to have supplemental logging enabled to find who did what even for the DDL correct?
    Is there any way i can find who dropped the table?
    ThanksI can think about 2 different ways to do it ;
    1- by using Audit http://www.oracle-base.com/articles/10g/Auditing_10gR2.php ; if it's enabled
    2- or there another method , does not give a real precision, but could be helpful if the audit is not enabled ; can be to check listener log. Listener does show database connection requests. So if you know the time the table was dropped (SELECT DROPTIME
    FROM DBA_RECYCLEBIN
    WHERE Owner = 'XXX'
    AND ORIGINAL_NAME= 'YYYYYY'), you can see from the listener log what connected to the database at that time. (asuming that the connection request was from a remote client, not the DB server)
    E.g if I found that the table were dropped at 14:45:18 then I can tell from my listener log that it is probably due to a user connected by the portal application on host portal.es6.orawiss.net:
    23-AUG-2010 14:45:18 * (CONNECT_DATA=(SID=DB02)(CID=(PROGRAM=httpd)(HOST=portal.es6.orawiss.net)(USER=apache))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.44.30)(PORT=60618)) * establish * DB02 * 0
    Listener logs are an important source of audit information.
    Hope it helps :)

  • Check who was logged in

    Hello!
    Is it possible to check who was logged in to my AirPort? Unfortunatley my guest network was active and without password when I checked today. I disabled the guest network in an instance. Can I check if someone was using my network?

    It is not possible to check "WHO" was logged in.  However something to consider.
    If you leave the guest network active and monitor your DHCP Log's you can get their
    MAC address, IP , and computer name.  Usually a computer name may tell you what you want to know.
    Since they have to be close enough to your wifi network to connect to your guest network.  A good chance a computer name would be someone you know.  If not you can look at the computers near you and see their name till you find it.  Then you can figure out the "WHO" part.
    Just a idea is all.
    Good Luck

  • Who's logged on?

    I'm using session variables to store when a user is logged
    into my site, among other persistent variables. Is there anyway I
    can create a admin webpage that shows who is logged in at any given
    time? I guess what I'm trying to do is pull in all the current
    statuses of #SESSION.login# on the server. I thought about when the
    user logs in, putting a value in a db that could be polled, but
    then when the session times out or the user logs off, I would have
    to finda way to update the database. Is there a more effecient way
    to do this? I see other webpages that do it, so there must be a way
    to accomplish it.
    Thanks!!
    xt07t

    Hi, you might like to play around with the
    coldfusion.runtime.SessionTracker java library - discussed here in
    >>this
    thread<<
    You could also check out
    >>this
    article<< which demonstrates a method for counting number
    of active sessions.
    cheers.

  • How to find who has deleted program

    Hi,
    Some one has delete a report from the system.How can I find the user who has deleted?
    thanks

    Hi ,
    Please refer the threads,
    How to find who deleted my program?
    How to find deleted program
    Best Regards.
    Reward points if it is helpful.

  • How do you assign the user who has logged in current session ?

    Hello,
    in oracle forms , you could assigned user who has logged in to any field , e.g field_name := USER_ID;
    I need to assign the user who has logged to a field in jdeveloper 12 . How do you do that please ?
    Thanks.

    Try this: https://www.google.com/search?q=adf+get+current+user
    CM.

Maybe you are looking for