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.
Hello paul i’m trying to redirect the log off page to a custom page that i have designed
how do i make it work ..?
Does the meta refresh tag not work?
I found the solution thank u anyways 🙂
Hello,
When I try above solution, I get PRS-OBJ-0617 The object “/portal/logoff.xts” could not be created…. after click on logoff link.
@Avi: Can you share your solution?
Thanks
Nanno
This is wot i had documented:
1) create the html file to which you want to redirect the user after he logs off.
Like for example:
2) Copy the html page and paste it in the following location : c10webcontentsamples
3) Now Goto Report Studio and create a new report. Goto toolbox and drag and drop the Hyperlink tool.
4) Now goto the hyperlink properties and in Url Source , url give the path of the html page.
5) Run the report
Copy the url path on the viewer.
6) Now navigate to : c10templatesps system.xml
Search for “custom auth “ and make log off enambled = true
Bellow is the fragment where the changes is to be made
http://localhost/IBMCongnos/samples/logoff.html
Paste the url path that you copied on step 5 and paste it here.
The above code fragment shows this in bold.
7) Then save the file and restart cognos.
8) Now when you log in and log out you will be redirected to the custom page
OK, you exaplanation is clear. Only your example file is not included.
In my case I have to redirect the user to the main page of the intranet site of the company.
I found some more examples on the internet but they are not working. One example is with SDK, and we don’t have that.
I found in the portal.jar that the logoff.xts also exists. But this file works with parameters so it is not clear where to “tune”.
When I rename the protal.jar to portal.jar.bak and I restart cognos, I get the error mentioned before. It looks like the logoff.xts is not found a that moment.
Any more suggestions would be appreciated.
Thanks,
Nanno
Ok so u want to redirect to the company main page right..
so heres wot u do..
navigate to : c10templatesps system.xml
Search for “custom auth “ and make log off enambled = true
Bellow is the fragment where the changes is to be made
“copy the link of the main page and paste it here”
restart cognos!
hope this helps.
well i cant type the code too.. so if u find the tag logoff enabeled =true, and inside the tag redirect-url copy-paste the link of the company site home page.
Hi Avi,
You can post code by using the <code> or the [sourcecode] tags. Or you can replace < with the HTML entity
& l t ;
.Hi Paul,
Using system.xml at /c10/templates/ps and the custom-auth section, I was able to redirect users to a url, as such:
http://www.google.com
BUT, this only works when users click on the logoff link. I want the same redirection if the session timesout too. Right now, if the session timesout the users are taken to the cognos login page.
Any thoughts?
Thanks,
Swetab