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 have sp application where there are 15 subsite.I need to redirect each subsite to the respective logout page when i click logout.How do i achieve this & properly logout each respective subsite?

share|improve this question
add comment

1 Answer

No need to LOGOUT each SubSite but simple call this page in the _layouts virtual folder (available from wherever in SharePoint) use

(the / in front would make your link relative to your site collection) /_layouts/signOut.aspx

share|improve this answer
    
i have custom pages created for each subsite logout.I used powershell to set my custom application page as signout page.i am now able to redirect the logout url but the problem is i am not successfully logging out the user>ADFS authentication is being used by me –  Nikhil Apr 22 '12 at 7:16
    
C:\PS>Set-SPCustomLayoutsPage -Identity “_layouts/signout.aspx” -Relat ivePath “/_layouts/custompages/mysignout.aspx” -WebApplication “http:/ /server_name/mywebapp” –  Nikhil Apr 22 '12 at 7:22
    
I'm a little confused about your definition of subSite as custom login pages are set Web Application wide. On the other hand ADFS issues an STS-specific cookie (MSISSignOut) to performed logout across all relying parties, which is Session Based (close browser and you loose it), but NOT lost by navigating simply to SignOUt page - need to close or remove it manually. –  C. Marius - MVP Apr 22 '12 at 17:19
    
well i created a application page where i wrote javascript to "clearauthenticationcache" . logout works fine in IE but mozilla and firefox i cannot successfully logout. –  Nikhil Apr 29 '12 at 13:32
    
could you explain how to remove the session manually ? –  Nikhil Apr 29 '12 at 13:33
show 1 more comment

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.