More in this section

Forums / General Discussions / Can not Logout Backend user through API

Can not Logout Backend user through API

2 posts, 0 answered
  1. Blake
    Blake avatar
    10 posts
    28 Jul 2009
    18 Apr 2011
    Link to this post
    Hey Sitefinity Support Team,

    This is for Sitefinity 4.1.

    I can not invoke the following code on a backend user:
    SecurityManager.Logout(defaultProvider, username);   

    It does not logout the user, if they are a backend user.  I just keep getting a result of UserAlreadyLoggedIn.

    If they are just a frontend user, it works and logs them out.

    Any ideas?


    Blake Theiss
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    30 Oct 2017
    19 Apr 2011
    Link to this post
    Hi Blake,

    Can you please try using the Logout() method of SecurityManager without passing any arguments. It should log the current user out. If you desire different functionality, please inform me in detail, so that I can give you a more specific answer.

    Boyan Barnev
    the Telerik team

2 posts, 0 answered