Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm using the SharePoint 2010 FBA Pack http://sharepoint2010fba.codeplex.com/. Basically, I want to redirect to the homepage once a user Sign's out. I'm unable to find this. Could someone please help me out?

Many Thanks!

share|improve this question

migrated from stackoverflow.com Apr 3 '12 at 0:42

This question came from our site for professional and enthusiast programmers.

2 Answers 2

You can follow steps below:

1) Create a copy of SignOut.aspx in the Layouts folder. Rename it as CustomSignOut.aspx

2) Open the custom page in notepad\designer. In the function _spBodyOnLoad() replace windows.close() with windows.location("YourHomePageRelativeUrl");

3) Make this page the default sign out page for the web application using below command in SP Management shell :

Set-SPCustomLayoutsPage -identity "Signout" -RelativePath "/_layouts/CustomSignOut.aspx" -WebApplication "http://yourwebapplicationurl"
share|improve this answer
    
That did not fix it for me. I believe that page is related to Windows Authentication, not FBA. –  Umm.... Apr 3 '12 at 19:59
    
Signout page is same for both –  Amit Kumawat Apr 4 '12 at 7:14
    
Not sure, but after signing out, it stays on the same page. Even before I applied your answer, it did the same thing. Window never closed. It only closed during Windows Authentication. Also, window.location('') didn't work; I had to use window.location.href = "/"; –  Umm.... Apr 4 '12 at 16:04

Amit's answer is correct as discussed previously - signout.aspx doesn't seem to be used

Simply done using PowerShell;

Set-SPCustomLayoutsPage -identity "Signout" -RelativePath "/_layouts/CustomSignout/Signout.aspx" -WebApplication "http://yourwebapplication"

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

Simply UN-done using PowerShell;

Set-SPCustomLayoutsPage -identity -reset -WebApplication "http://yourwebapplication"

I must have missed the important part about the "FBA Pack", although I am not certain, I think you could either make a feature or edit the master page, adding the signout functionality. I don't have a server to test this right now but please check this out;

http://www.thesug.org/blogs/lsuslinky/Lists/Posts/ViewPost.aspx?ID=23

Documentation for Set-SPCustomLayoutsPage: http://technet.microsoft.com/en-us/library/ff607768%28v=office.15%29.aspx

share|improve this answer
    
That did not fix it for me. I believe that page is related to Windows Authentication, not FBA. –  Umm.... Apr 3 '12 at 20:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.