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
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.
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?
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.
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
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
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,
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
Can kicking only be done by admin, or some other account such as content editor can also kick another user ?
ReplyDeleteI 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.
ReplyDeleteIf you need non-administrators to be able to kick any user (even administrators), you can set the setting "AllowLogoutOfAllUsers" to "true".
ReplyDeleteThank you for the tips!
ReplyDeleteWhat is the url for sitecore 8?
ReplyDeleteWhat is the url for sitecore 8?
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThe page is still on the same place but I have tested and it isn't accessible anymore if you are not logged.
ReplyDeleteIf 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?
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.
ReplyDeleteSo 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.
Siecore 8 location is: /sitecore/client/Applications/LicenseOptions/KickUser
ReplyDeleteIf 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
You can get a list of current shell sessions from
ReplyDeleteSitecore.Web.Authentication.DomainAccessGuard::Sessions, Sitecore.Kernel
This is where Kick/Boost gets it from.
You can just paste the following into a text file called "sessions.aspx"
ReplyDelete=======================
<%@ Page %>
<%
var sessions = Sitecore.Web.Authentication.DomainAccessGuard.Sessions;
foreach ( var s in sessions )
Response.Write( s.UserName + ", last request: " + s.LastRequest.ToLocalTime().ToString() + "
" );
%>
Where has this gone in Sitecore 8?
ReplyDeleteAs Jason St-Cyr said it is here now: /sitecore/client/Applications/LicenseOptions/KickUser
ReplyDeleteBut this seem not accessible when you are not logged in :-D
You also have this page: http://myextrapill.local/sitecore/client/Applications/LicenseOptions/StartPage
ReplyDeletehai 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
ReplyDeleteHello,
ReplyDeleteI 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,
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
ReplyDeletesame for me getting 401
ReplyDelete