Can not Logout Backend user through API

Posted by Community Admin on 03-Aug-2018 19:16

Can not Logout Backend user through API

All Replies

Posted by Community Admin on 18-Apr-2011 00:00

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?

Thanks!

Blake Theiss

Posted by Community Admin on 19-Apr-2011 00:00

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.

Greetings,
Boyan Barnev
the Telerik team


This thread is closed