I know that the logging in a backend user via api has been covered here in the forum. But how do you actually log a user OUT from the backend using an api call?
Therefore that it is a asp.net membership provider I assume that you can do it with the standard membership functions. e.g with forms authentication it would be
Sourcecode says base.ClearLogin(); however when puttting that into a razor script is says like this: error CS0117: 'umbraco.MacroEngines.DynamicNodeContext' does not contain a definition for 'ClearLogin'
Then I tried like this: umbraco.logout.Current.ClearLogin();
But it gives me this error on page: Error loading MacroEngine script (file: Login.cshtml)
Logging OUT backend user via api
Hi everybody,
I know that the logging in a backend user via api has been covered here in the forum. But how do you actually log a user OUT from the backend using an api call?
Umbraco 4.7.1.1
IIS 7.5
Thanks
Well it is as easy as redirecting to the ~/umbraco/logout.aspx page, but still looking into the api call
Therefore that it is a asp.net membership provider I assume that you can do it with the standard membership functions. e.g with forms authentication it would be
hth, Thomas
Hey, I tried that firstly but no good.
The redirect of the page is the only valid way that I have come by until now.
Thanks!
hmm, interesting, will take a look later
Sourcecode says base.ClearLogin(); however when puttting that into a razor script is says like this: error CS0117: 'umbraco.MacroEngines.DynamicNodeContext' does not contain a definition for 'ClearLogin'
Then I tried like this: umbraco.logout.Current.ClearLogin();
But it gives me this error on page: Error loading MacroEngine script (file: Login.cshtml)
Any help appreciated!
is working on a reply...