Its often required for developers as they wanted to test the application or SharePoint site with different user context.
It can be done in two ways,
1,Hold the Shift Key and Right click on your Internet explorer menu in the start up menu.
2,Go to "http://siteurl/_layouts/closeConnection.aspx?loginasanotheruser=true"