문제

I have a requirement to remove a non-SharePoint cookie (if it exists) when someone clicks the "Sign out" link in the users menu. The cookie comes from a 3rd party system that we can use for authentication during the sign in process, but causes a problem if it still exists and the person tries to log in again... whatever, the cookie needs to go!

I've been reading around and found the signout.aspx file in the 'hive' (/14/ - I'm using SharePoint 2010, clearly). However, if I make changes to this page (bad idea I know, but for proof of concept...) none of those change happen when I sign out.

For example, I the page, by default contains

<script type="text/javascript">
function ULSd63(){var o=new Object;o.ULSTeamName="Microsoft SharePoint Foundation";o.ULSFileName="SignOut.aspx";return o;}
function _spBodyOnLoad()
{ULSd63:;
    window.close();
}
</script>

If I add something like alert('hello world'); and then refresh, and use the sign out link, there no alert. I tried removed all the JavaScript from the page, and I was still able to sign out.

My question: is this page, /14/template/layouts/signout.aspx, actually the one being used by this sign out link? If not, where is that page to I can add some code to remove my cookie?

I found one article that explains how to use PowerShell to replace out-of-the-box (ootb) pages, but it didn't say how to put the ootb pages back if you need to, so that scared me off. Might this be a better way of doing things? Are there any requirements for a custom signout page? I'm sure there must be, but I didn't find any yet.

Any help you guys can offer would be greatly appreciated :)

Kevin

다른 팁

PowerShell - Set-SPCustomLayoutsPage

http://technet.microsoft.com/en-us/library/ff607768.aspx

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top