Sun Java System Access Manager Policy Agent 2.2 Guide for Microsoft IIS 6.0 With Outlook Web Access 2007/SharePoint 2007

ProcedureOutlook Web Access: To Create a Local Idle Session Timeout Page

This task consists of steps that vary in specificity. These steps are to be performed on the Microsoft IIS 6.0 Server. The purpose of this task is to create a local web site to redirect timeout requests to the Access Manager timeout page.

  1. Create a new virtual server (a different web site) in the Microsoft IIS 6.0 Server administration console.

  2. For the new virtual server, create a corresponding application pool with a new document folder.

    An example name for this folder is C:\Inetpub\test.

    While the preceding example folder name is used throughout this task, it is only an example. You might chose to use a different name.

  3. Install SSL on the newly created web site.


    Tip –
    • Ensure that this web site is accessible from a browser.

    • Configure the port number.

      An example port number for this port is 444. However, 444 is only an example. You might chose to use a different port number.

    • Ensure that the Outlook Web Access server runs on a different port (therefore, for the example used in this task, not port 444).


  4. Ensure that the web site is enabled to run scripts and executable files as described in the substeps that follow:

    1. As an administrator, log in to Windows 2003 Server where Outlook Web Access Server is running.

    2. In the Microsoft Windows Start menu, choose run.

    3. Type the following: inetmgr.

    4. Click OK.

    5. Expand the local computer.

    6. Expand the Web Sites folder.

    7. Right-click Default Web Site.

      An options list appears.

    8. In the options list, click Properties.

      The Default Web Site Properties dialog box appears.

    9. Select the Home Directory tab.

    10. Under the Application settings section, in the Execute permissions drop down list, select Scripts and Executables.

  5. Create a .aspx page, such as timeout.aspx, in the folder C:\Inetpub\test.

    As explained previously, timeout.aspx is only an example. However, ensure that you use the same name for this page as used in Outlook Web Access: To Edit the Agent Properties File.

  6. Add the markup information provided in this step to the timeout.aspx file, editing the place holders as appropriate.

    In the markup information provided in this step, the following place holders apply:

    amHost

    A place holder that you must replace with the name of the host machine on which Access Manager is running.

    amHost.domain-name

    The fully qualified domain name of the Access Manager host machine.

    agentHost

    A place holder that you must replace with the name of the host machine (or the alias name, if an alias name is used instead of the actual host name) on which the agent is running.

    agentHost.domain-name

    A place holder that you must replace with the fully qualified domain name of the agent host machine.

     <%@ Page language="c#" AutoEventWireup="false"  %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    
    <%
    string cookieValue="";
    if (Request.Cookies["UserContext"] != null)
    {
       cookieValue=Request.Cookies["UserContext"].Value;
       HttpCookie myCookie = new HttpCookie("UserContext",cookieValue);
       myCookie.Expires = DateTime.Now.AddDays(-1d);
       myCookie.Path = "/";
       Response.Cookies.Add(myCookie);
    }
    
    %>
    
    <script language="javascript">
       function RefreshParent()
       {
          gotoUrl="https://amHost.domain-name:443/amserver/UI/Logout?goto=
    https://agentHost.domain-name:443/owa";
                    window.location.href = gotoUrl;
                    window.parent.location.href = gotoUrl;
                    window.parent.parent.location.href = gotoUrl;
               window.opener.parent.location.href = gotoUrl;
       }
    
       function CallRefresh()
       {
          RefreshParent();
          if(!window.close())
          {
             window.close();
          }
       }
    </script>
    
    
    </head>
    <body onload="javascript:CallRefresh()">
    </body>
    </html>
  7. Save and close the timeout.aspx file.