Redirect to a different page when signout is clicked rather than redirecting tobuit-in signout.aspx
when we click on logout control on "welcome system account" dropdown control(available at top-right of the page). it uses a buit in page signout.as开发者_如何学Cpx(C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\signout.aspx) page to redirect . i want it to redirect to my own created custom signout page which i will manually place in layouts folder. how to do it
Yes, you can change the redirection of your signout page using Sharepoint Management Shell command.
Setting the custom sign out page:
Set-SPCustomLayoutsPage -identity "Signout" -RelativePath "/_layouts/CustomSignout/Signout.aspx" -WebApplication "http://yourwebapplication"
Setting default sign out page:
Set-SPCustomLayoutsPage -identity "Signout" -reset -WebApplication "http://yourwebapplication"
Create a HttpModule and then redirect
精彩评论