November 25, 2010

See the logged users in the admin and kick it if needed

Sometime you need to kick some users but you only see the kick user screen when you try to login if they are allready the maximum users logged.
But you can use this screen:
http://website.com/sitecore/shell/Applications/Login/Users/Kick.aspx

19 comments:

  1. Can kicking only be done by admin, or some other account such as content editor can also kick another user ?

    ReplyDelete
  2. I think that this windows is available for everybody because it is the seem screen used when a user try to login when all the available sessions are used.

    ReplyDelete
  3. If you need non-administrators to be able to kick any user (even administrators), you can set the setting "AllowLogoutOfAllUsers" to "true".

    ReplyDelete
  4. What is the url for sitecore 8?

    ReplyDelete
  5. What is the url for sitecore 8?

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. The page is still on the same place but I have tested and it isn't accessible anymore if you are not logged.
    If you are allready logged it work but I suppose that you want to access when you cannot login...
    Maybe if you add this page into the IngorlUrlPrefix it could work?

    ReplyDelete
  8. After a bit more investigation I see in the code of this control that you are redirect to the login page if you are not authenticate.
    So you can write a workaround for it:
    - Create a dll with a class named Kick.cs
    - inherit from: Sitecore.Shell.Applications.Login.Users.Kick (from the Sitecore.Client.dll)
    - override the Page_Load and just call base.base.Page_Load()
    - Edit the file: /sitecore/shell/Applications/Login/Users/Kick.aspx
    - on the first line replace Inherits="XXXX" by your class

    I didn't have the time to test but I think that it should work! If not tell me.

    ReplyDelete
  9. Siecore 8 location is: /sitecore/client/Applications/LicenseOptions/KickUser

    If you stll have KickUsers,aspx in the old location, this is probably a left-over file from an uprade. The file no longer ships with Sitecore 8 packages

    ReplyDelete
  10. You can get a list of current shell sessions from
    Sitecore.Web.Authentication.DomainAccessGuard::Sessions, Sitecore.Kernel

    This is where Kick/Boost gets it from.

    ReplyDelete
  11. You can just paste the following into a text file called "sessions.aspx"

    =======================
    <%@ Page %>
    <%
    var sessions = Sitecore.Web.Authentication.DomainAccessGuard.Sessions;
    foreach ( var s in sessions )
    Response.Write( s.UserName + ", last request: " + s.LastRequest.ToLocalTime().ToString() + "
    " );
    %>

    ReplyDelete
  12. Where has this gone in Sitecore 8?

    ReplyDelete
  13. As Jason St-Cyr said it is here now: /sitecore/client/Applications/LicenseOptions/KickUser
    But this seem not accessible when you are not logged in :-D

    ReplyDelete
  14. You also have this page: http://myextrapill.local/sitecore/client/Applications/LicenseOptions/StartPage

    ReplyDelete
  15. hai http://local.ca-digi.com/sitecore/client/Applications/LicenseOptions/KickUser.aspx but show "There are no active user sessions that you can log out from Sitecore". Any configuration i need to enable to show the active user ?. we are using sitecore 8.1 update 3

    ReplyDelete
  16. Hello,
    I have just checked l/sitecore/client/Applications/LicenseOptions/StartPage in Sitecore 8.1 up 1 and it looks ok. Do you use an admin user?
    But yes the problem with this page is the fact that you first need to login.
    Regards,

    ReplyDelete
  17. Hi http://local.ca-digi.com/api/sitecore/DomainAccessGuard/GetActiveSessions am getting 401 unauthorized in this url. Please let me know how to enable setting for sitecore API

    ReplyDelete