create a log out button on SharePoint 2007 – 2010

I ran into a question from a client, who was working with FBA. He wanted to simplify his portal for extranet users, so he wanted to display a log out link on his page.

It turns out the solution is really simple: just create a link to the _layouts/signout.aspx page in a content editor webpart.

For you really lazy people, copy this url:

<a href="_layouts/signout.aspx">log out</a>

If you click on that link, you will be signed off. Thanks to Jeroen Van Bastelaere

About: Marijn

Marijn Somers (MVP) has over 14 years experience in the SharePoint world, starting out with SP2007. Over the years the focus has grown to Office 365, with a focus on collaboration and document management. He is a business consultant at Balestra and Principal Content Provider for "Mijn 365 Coach" that offers dutch employee video training. His main work tracks are around user adoption, training and coaching and governance. He is also not afraid to dig deeper in the technicalities with PowerShell, adaptive cards or custom formatting in lists and libraries. You can listen to him on the biweekly "Office 365 Distilled" podcast.

2 thoughts on “create a log out button on SharePoint 2007 – 2010”

  1. What will happen if user click on Browser back button?

    He will be again on site.

  2. The user will be back on the site, but he will not be logged-in anymore.

    When the user wants to do an action on the SharePoint site, he/she will get the prompt to log back in.

Leave a Reply

Your email address will not be published. Required fields are marked *