SharePoint: how to fix CKS Live ID logout
Last month I wrote about how to add SharePoint users for Live ID accounts on Community Kit for SharePoint. Another problem we found was that logout didn’t worked as expected. When logging out form Live ID we can see error on Live ID site stating that logout from our system failed.
I found a solution for this problem and it is very easy fix to apply.
- Open liveauth-handler.aspx.cs.
- Move to Render method.
- Paste the following code after first if.
else if (Request.QueryString["action"] == "clearcookie")
var gif = "R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7";
Page.Response.ContentType = "image/gif";
- Save handler file, compile the project and deploy compiled DLL to GAC.
I hope it helps somebody.