c# - Perform logout in Sharepoint 2010 Login Control -


i trying customize login control

public partial class logincontrol : usercontrol 

in sharepoint 2010 application getting error message after login control performs loggedin event:

system.argumentexception: eine ausnahme vom typ "system.argumentexception" wurde ausgelöst.  parametername: encodedvalue    bei microsoft.sharepoint.administration.claims.spclaimencodingmanager.decodeclaimfromformssuffix(string encodedvalue)     bei microsoft.sharepoint.administration.claims.spclaimprovidermanager.getprovideruserkey(string encodedidentityclaimsuffix)     bei microsoft.sharepoint.applicationruntime.spheadermanager.addisapiheaders(httpcontext context, string encodedurl, namevaluecollection headers)     bei microsoft.sharepoint.applicationruntime.sprequestmodule.prerequestexecuteapphandler(object osender, eventargs ea)     bei system.web.httpapplication.synceventexecutionstep.system.web.httpapplication.iexecutionstep.execute()     bei system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) 

i did research , found out problem cause because users session still open , not logged out.(this issue occurs because invalid user context left in iis cache.)

is there way me ensure user signed out before try sign in user?


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -