Redirecting on logoff

When a user logs off from Cognos he gets to a “You are logged off” note with the option to log back in. Sometimes it is preferable to have the log off screen automatically redirect the user.

The file that controls the log off screen is found at ../templates/ps/portal/logoff.xts.

I highly recommend using an XML editor such as Notepad++ for making modifications to these files.

In this file search for the string <!– Standard meta tags –> (it should be on or around row 105). Paste <meta HTTP-EQUIV=”refresh” content=”2;url=http://www.google.com/”/> directly below that. Save and close.

It should look like:

<dp:meta>
<pf:meta/>
<!– Standard meta tags –>
<meta HTTP-EQUIV=”refresh” content=”2;url=http://www.google.com/”/>
</dp:meta>

Before you can restart Cognos you will need to remove the portal.jar from ../webapps/p2pd/WEB-INF/lib/. The easiest way is to simply rename it to portal.jar.bak. This file contains many of the XTS files. Cognos will default to using the files in that JAR before the ones in the templates folder.

With the portal.jar file removed, restart Cognos. Log in, then log back out. If all goes well you should be redirected to google in 2 seconds.

Back To Top