Saturday, March 07, 2009

Sharepoint Signout Page and Command

Hi,

How many times you ask what code we need to make the signOut page, you can find the page "signout.aspx" here:
"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS"
there you can open the page and have Javascript code "document.execCommand("ClearAuthenticationCache");" will clear cache from you login.

There you can manage you sign out page using Custom Actions as a feature

Id="[Guid]"
Title="Feature to active Custom Log Out"
Description="Site Actions Menu Log Out Option"
Scope="Site"
xmlns="http://schemas.microsoft.com/sharepoint/">
< ElementManifests >
< ElementManifest location="elements.xml">
< /ElementManifests >

On you elements Xml file you add Custom Menu Option

< id="Custom signout"
groupid="SiteActions"
location="Microsoft.SharePoint.StandardMenu"
sequence="2000"
title="Custom Sign Out Page"
description="Logout of this site">
< url="~site/_layouts/signout.aspx">
< /CustomAction >

Post a Comment