How to Change the CompanyWeb Timeout in SBS 2008

[Today's post comes to us courtesy of Chris Puckett]

The CompanyWeb site in SBS 2008 is configured with a 30 minute idle timeout in the default master page. This timeout is unique to CompanyWeb in SBS 2008 and affects connections to CompanyWeb from the LAN or over the Internet.  To change this timeout:

  1. Create a backup of your current CompanyWeb using the native SBS backup.

  2. Browse to https://companyweb.

  3. Click Site Actions and then click Site Settings.

  4. In the Galleries section, click Master pages.

  5. Right-click default.master, point to Send To and then click Download a copy. Save the file in the My Documents or some folder of your choosing.

  6. Make a backup copy of this file.

  7. Open the default.master file in Notepad.

  8. Locate this section:

    //this value indicates after how many miliseconds
    var LOGIN_SESSION_TIMEOUT_VALUE = 1800000;
    function EndSession()
    {
    window.location = "/_layouts/SignOut.aspx";
    }

    master file in notepad

  9. Modify the 1800000 value to the desired timeout in milliseconds.
      60000 milliseconds = 1 minute
      1800000 milliseconds = 30 minutes (default)
      3600000 milliseconds = 1 hour

  10. In Notepad, click File and then click Save. The file should be saved as default.master and not default.master.txt. Note the MASTER File type in the screenshot below.
    clip_image002

  11. In CompanyWeb, click Upload, and select the default.master file. Leave the box Add as a new version to existing files checked and click OK. You can also specify the change you made in the comments section.
    clip_image004

  12. After the document is uploaded, click OK.
    Note: It should appear in the master page gallery default.master and not default.master.txt (or any other extension).
    clip_image006