SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2007
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Mix and match of methods

    In my code at the moment, I have run sqls to find if I need to run backup/export. I have run GetConnectionsCount which tells me if there is more than 1 (me) user logged onto Domain/Project.
    If I run GetConnections, this gives me a list of all logged in users (too much.) If I run GetUsersInProject, this gives me a list of all with permissions for specific project (too much.)
    What I am wondering is, is there a call (which i'm not finding,) which will advise me of who is currently logged onto the specific DOMAIN-Project, not all users for project or all users logged on.

    Thanks to all who are willing to advise. Trudy, thanks in advance for your reply (smile)...
    Alex...

  2. #2
    Moderator
    Join Date
    Oct 2010
    Location
    Norway
    Posts
    3,265
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Mix and match of methods

    [ QUOTE ]
    If I run GetConnections, this gives me a list of all logged in users (too much.)

    [/ QUOTE ]
    Get the xml from the GetConnections method & filter it based on the Project using Xpath. Then you can get all the users logged in to that particular Project.
    Rajkumar

  3. #3
    Advanced Member
    Join Date
    Nov 2006
    Posts
    821
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0

    Re: Mix and match of methods

    Alternately, write a SQL query to directly query the site admin database table SESSIONS_HISTORY looking for records with a NULL END_TIME, which is an indication of a currently connected session.
    Trudy C
    (Opinions and information contained in this post are wholly my own and do not reflect the opinions of my employer.)

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:34 AM.

Copyright BetaSoft Inc.