Sun Java System Portal Server 7 Enterprise Sample Guide

ProcedureTo Define the Logout Page

You can specify a custom logout page for users when they log out of the portal. This is accomplished by using the Access Manager Logout service with the goto parameter specified for the custom logout page. The Enterprise Sample uses this approach when a user logs out of the portal to redirect to the anonymous portal.

Steps
  1. Navigate to the directory Navigate to the directory

    /var/opt/SUNWportal/portals/portal-ID/desktop/enterprise_sample

  2. Edit the logout.jsp file.

    For example:


    onClick="location.href=’/amserver/UI/Logout?goto=/logout.html’"

    The Enterprise Sample specifies the custom logout page in the following files:


    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/logout.jsp
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/error.template
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/noneditablechannel.template
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/noprivilege.template
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/unknownchannel.template