More in this section

Forums / Developing with Sitefinity / Need to log out user's existing sessions when signs in with a new browser (non-backend user)

Need to log out user's existing sessions when signs in with a new browser (non-backend user)

2 posts, 0 answered
  1. Marc
    Marc avatar
    3 posts
    14 Oct 2012
    21 Jun 2016
    Link to this post

    Hi guys,

    We have a site using Sitefinity 7.0. 

    As you know, when a backend user logs into Sitefinity, and they are already logged in elsewhere, it prompts them to log out the other session before they are allowed to proceed.

    We need to implement this same functionality but for users that are NOT backend users.

    1. A non backend user is logged in at home.

    2. They then attempt to log in at work.

    3. The session at home is terminated and a new session is logged in just at work.

    I have not been able to find a way to programmatically terminate all existing sessions for a user and then log them back in on just the one web browser.

    Does someone know the code to achieve this? The securitymanager logout methods only end the current session for a user it seems, I think I need a method that will end existing ALL sessions for a user.

    SecurityManager.Logout("Default", username); 







  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    06 Sep 2017
    23 Jun 2016
    Link to this post
    Hello Marc,

    There is Feature request in the feedback portal where you can vote for it:

    Svetoslav Manchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered