How to retrieve all session instances of a server

Hi!
I am writing a web application and assign each client a session varialble in order to count the number of online users. However this method does not give very accurate results. Hence I want to collect all each client session in my server and want to retrieve this collection anytime I want. This way I will be able to use session.getLastAccessedTime() method and check whether user is active or not by checking its last access time. I would gladly appreciate if anyone gives me a hint or shows me a method for collecting these HttpSession variables.
Sincerely;
Can Akpinar
[email protected]

Try below webpart
http://exportversionhistory.codeplex.com/
http://www.sharepointnadeem.com/2012/07/export-version-history-of-sharepoint.html
http://www.codeproject.com/Articles/400720/SharePoint-Export-Selected-Items-to-Excel
You can even try below powershell script
http://www.captechconsulting.com/blog/amarender-peddamalku/sharepoint-2010-powershell-script-extract-the-version-history
if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null)
Add-PSSnapin Microsoft.SharePoint.PowerShell;
$SPWeb = Get-SPWeb http://sp2010/sites/test/ #Change the SharePoint site name here#
$List = $SPWeb.Lists["Documents"] #Change the document library name here#
$ItemsColl = $List.Items
Write-Host "************************************************************" -ForegroundColor Green
Write-Host "The following report provides you the list of documents that are modified by UserXYZ" -ForegroundColor Green
Write-Host "------------------------------------------------------------" -ForegroundColor Green
foreach ($item in $ItemsColl)
foreach($Ver in $item.Versions)
if ($Ver.CreatedBy.User.DisplayName -eq "UserXYZ") #Change the user name here#
Write-Host $item.Name "'s version" $Ver.VersionLabel "has been Modified by" $Ver.CreatedBy.User.DisplayName ":: URL ->" $item.Url -ForegroundColor Green
Write-Host "------------------------------------------------------------" -ForegroundColor Green
Write-Host "************************************************************" -ForegroundColor Green
$SPWeb.Dispose()
http://sharepointnadeem.blogspot.in/2012/07/export-version-history-of-sharepoint.html
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • How to retrieve all datas that lost when i update my iphone4 to that 6.10 ios. i tried to look at may i tunes in my computer but it seems that i forgot to perform back ups since i purchased this phone 2yirs ago.. pls send me an advice..thank u.

    how to retrieve all datas that lost when i update my iphone4 to that 6.10 ios. i tried to look at may i tunes in my computer but it seems that i forgot to perform back ups since i purchased this phone 2yirs ago.. pls send me an advice..thank u.

    All of the data should be on your computer, simply sync it back.
    If the update was done via iTunes on the computer, the first step in the process is a backup of the device.

  • How to retrieve all users in the portal with UME API

    Hi everybody,
    I would like to know how to retrieve all the users from a portal, which uses LDAP as a source (there are users created in the portal as well)
    My code snippet is :
    IUserFactory userFactory = UMFactory.getUserFactory();
    UserSearchFilter searchFilter = userFactory.getUserSearchFilter();
    searchFilter.setDisplayName("*", ISearchAttribute.LIKE_OPERATOR, false);
    ISearchResult searchResult = userFactory.searchUsers(searchFilter);
    My problem is that with the code above, only the users created in the portal are displayed, and no LDAP users.
    Does someone know how to retrieve all the users whatever is the source?
    Regards
    Renaud

    prakash's code should work.
    however, mine code below doesn't user a search filter. it retrieves everyuser including users like indexadmin etc. Note:
    result.next().toString();
    returns a weird uniqueID used in the portal world.
    getUniqueName()
    gives your the usernames (sAMAccountName in Microsoft AD) people use to logon to the portal.
    try {
      IUserFactory uf = UMFactory.getUserFactory();
      ISearchResult result = uf.getUniqueIDs();
      while (result.hasNext()) {
        String uniqueid = result.next().toString();
        IUser user = uf.getUser(uniqueid);
        String userid = user.getUniqueName();
    } catch(Exception e) {
      //systemout

  • Can anyone tell me how to retrieve all reserved identifiers and keywords in

    can anyone tell me how to retrieve all reserved identifiers and keywords in oracle ???
    i want to know the syntax of query ??

    yes i do , but now i faced problem of JDBC
    thanx for the help , i am able to retrieve the keywords
    actually i want to retrieve the words in java thought JDBC
    my code is
    try ..//
    Vector  keywords =new Vector();
    String sql4=("select * from   V$RESERVED_WORDS");
    ResultSet rs7=stmt6.executeQuery(sql4);
    //  System.out.println("1");
    while(rs7.next())
    keywords.addElement(rs.getString("KEYWORD"));
    ;catch //This is giving following exception
    java.sql.SQLException: Invalid column name

  • How to retrieve all external refereces in a frame maker file without conditional text of hidden

    How to retrieve all external refereces in a frame maker file without conditional text of hidden

    Hi,<br />Finally I found the solution of the above problem.<br />Use following interface-function combination.<br />///////////code start<br />UIDList lst = Utils<IInCopyWorkFlowUtils>()->GetInCopyStories(doc);<br />for(int32 index = 0;index < lst.Length();index++)<br />{<br /><br />UIDRef incopyStory = Utils<IInCopyWorkFlowUtils>()->GetContainingInCopyStory(lst.GetRef(index));<br />if(incopyStory == UIDRef::gNull)<br />{<br />                                             break;<br />}<br />IDataLink * dLink = Utils<IInCopyBridgeUtils>()->QueryDataLink(incopyStory);<br />if(dLink == nil)<br />{<br />     break;<br />}<br />}<br />//////code end

  • How to close all session in OBPM 10gR3

    Hi all,
    I want to know how to close all sessions in engine.
    Because if there is some sessions in engine,the Directory polling is not take effect.
    (we can not restart engine.)
    Best Regards,
    Freeman

    BPM Studio (10g) is just a plugin for eclipse. To install other plugins, just use the Help - Software Updates - Find and Install
    HTH,
    -Kevin

  • How to retrieve all my photos...I have gray icons and question marks

    How to retrieve all my photos. I have gray icond and question marks

    Duplicate post.
    http://forums.adobe.com/thread/1419531
    Your original post has a response which requests more info from you.

  • How to find active sessions count on a server in weblogic server console

    Hi All,
    I would like to know how to find active sessions count on a server in weblogic console. I am using weblogic 11g.
    Regards,
    Sunil.

    On the deployment, monitoring tab, you can select web applications. Here the number of current sessions are listed per web application deployed on the domain.
    The deployment itself (deployments, application, monitoring, sessions) shows a list of sessions and where it is located. Unfortunately, there is no aggregation (but that is something you can so yourself as well).
    When you are using a load balancer in front, the count of sessions on per web application on the domain gives you some clue how many sessions there are present on each server.
    That is to say, when load balancer is using round-robin (and does that correct), you can take the total number of sessions divide it by the number of servers.

  • How to find all JMX ports on a server?

    How to find all jmx ports on particular server (say localhost) on windows
    I have multiple JVM's running on my local server, and there is extensive use of JXM mbeans by the applications running on each server. So I want to connect to all these JMX servers and to instrument the MBeans using Jconsole(Jconsole localhost:<port>). But I don't know the port numbers, and its not logged by the application.
    How do I find all the ports jmx servers connected?
    Note : In my case I can not instrument using the PID.
    thanks,
    bala K

    Hi kajbj,
    I tried stop/start the application, but couldn't find any difference in the netstat command. I know it should show the JMX port (I am able to see on a test application), but this application's JMX port usage is missing.
    netstat -ano --> Do i need to use any other commands?
    I just injected few lines of code ( to list the MBeanServers programatically), to this application (did some usual tweaks to let this code execute at some time) and its listing couple of MBeanServers and lot of MBeans.
    MBeanServerFactory.findMBeanServer(null); and so on.....
    Is there a way to get the port using the Management API's?
    thanks,
    bala K

  • How to retrieve all fields from Entiy Bean

    Is there a simpler way to retrieve all fields from the entity bean than calling each individual get method?
    I need to retrieve the entire record not the contents of the entire table.
    Though, I may eventually need to do that also.
    I have 56 fields on this table. It does not make sense to code a get statement for every field.
    If you can direct me to sample code that would be good.
    Also, are there any good examples out there of how to create an entity bean or session bean using a local interface?
    Thanks,
    Jim

    I think you are confusing an EJB with a DAO.
    If you want to access the database why not just use JDBC?

  • Retrieving all the instances assigned to a participant

    Hi all,
    I need to show in a task of a process all the instances of other processes assigned to the current participant or to all participant of a group.
    How can I do it? Which properties of these instances can I retrieve?
    Thank you,
    petitit

    I tried this :
    InstanceFilter instF;
    instF = InstanceFilter();
    comparator = Comparison.IS;
    instF.addAttributeTo(variable : VarDefinition.authorid, comparator : comparator , value : this.participant.id);
    listeInstances = ProcessService.getInstancesByFilter(filter : instF);
    But the process stay blocked while executed this task, although there is no loop... :S
    Any idea please?

  • How to retrieve all the data from a BLOB using view-generated accessor

    I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
    AppModuleImpl am;
    ImageVwViewImpl vo;
    am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
    vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
    ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
    ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
    jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
    edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

    This is the code I'm using now. Same problem :(
    AppModuleImpl am;
            ImageVwViewImpl vo;
            am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
            vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
            ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
            ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
            jULabel1.setIcon(icon);

  • How to find all the instances for specific recurring report

    How can I use UQery Builder to find out all the instance related to specific Recurring job. I have tried using following query to get the result with poor performance.
    select SI_ID, IS_SCHEDUILE_STATUS from ci_infoobjects where SI_NEW_JOB_ID = 2604480
    Since I find that SI_ID stores the current instance id and SI_NEW_JOB_ID stores the recurrign job's ID.
    Please Help.
    Edited by: Gabriel Luk on Feb 14, 2011 5:21 PM

    I can not find 'SI_KEYWORD' is a indexed properties in following SAP Notes.
    1364250 - Which BusinessObjects Enterprise InfoObject properties are indexed
    1499196 - Which of the InfoObject properties are indexed
    Edited by: Gabriel Luk on Feb 15, 2011 5:09 AM

  • How to retrieve all users in a specific group

    Hi,
    I am using SunOne directory server. Can someone please post a sample code that illustrates how to fetch all the list of users in a particular group.
    1) Let's say I want to find all the users in a group called "marketing". The root context is dc=mycompany,dc=com This group can be anywhere below this root context. Only information I am told is the name of the group - "marketing". How will I get all the users in this group?
    2) For each user that is retrieved from the group marketing, how will I find out the user's DN?
    Thanks for the help,
    - Satish

    Do it like this...
    String searchBase = "ou=marketing";
    StringBuffer filter = new StringBuffer();
    filter.append("(|");
    if (organizationName != null && !organizationName.trim().equals("")) {
         filter.append("(");
         filter.append(ou);
         filter.append("=");
         filter.append("marketing");
         filter.append(")");
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    constraints.setCountLimit(200); // How many users should be found
    constraints.setTimeLimit(100000); // how much time should this search wait
    // Get a initial context and set it to the ctx object
    ctx.search(searchBase, filter.toString(), constraints);

  • How to clear all session data in adf through coding?

    Hi Everyone,
    i have created many pages in an application.I want to clear all session data when i get back to my first page.
    how to do that?
    such that my application should run as i am running for the first time.
    Thanks.

    Hi Jabr,
    i have used this code in initMethod() (Before phase) of my page.
    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    this code got executed but the page has 2 lovs.
    im getting error null pointer exception that EmpLovVO not found.
    if i remove the above code then the page is running correctly.
    What to do now?
    Thanks.

Maybe you are looking for

  • VBFA not updated using BAPI_GOODSMVT_CREATE

    Hi, I'm using the function BAPI_GOODSMVT_CREATE to do a goods receipt for the outbound delivery as the replacement for MIGO (movement 101). The movement is created in the table MSEG but it doesn't update VBFA. There is someone another function to do

  • PP CS5  XDCAM Workflow

    I've read the pdf about XDCAM workflow. It says you connect the XDCAM and you can read it's clips like files. Fine, but it does not give any steps in how to actually accomplish that. I can read from XDCAM like before; as if it is a tape deck with RS4

  • [SOLVED] What visudo change for echo-ing a system parameter?

    according to Wiki, backlight can be set by echo 5 > /sys/class/backlight/acpi_video0/brightness but only as root. What change to do with visudo to allow user to set value? Last edited by dabbi2000 (2012-02-03 08:13:22)

  • Problème mise sur le web (face avant distante)

    Bonjour tout le monde, Voila, je ne comprend pas pourquoi je n'arrive pas depuis un autre ordinateur à lire une page web généré par LabView, alors que pourtant j'arrive à l'ouvrir depuis le pxi sur lequel je travaille. On doit bien pouvoir lire la pa

  • Image offline or not found problem

    I've been traveling a lot so I decided to move my entire Aperture Library to a firewire 800 drive thinking that I would be able to work from my laptop or desktop and have the exact same library without problems. It seemed to work fine until I plugged