Example: Creating a Custom Logon Page
Administrators can create their own custom logon
page to bypass the default logon page provided by the IBM®
Cognos® Analytics server. This custom page is a form that accepts the user's
logon parameters and passes them to the IBM Cognos server for authentication.
The user is then redirected to IBM Cognos Connection.
You can create a new logon page, or leverage an existing page used by a different application.
Following is an example of a simple logon page. The required authentication variables and preferences are passed to IBM Cognos Connection using an HTML form.
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT>
function createCookie()
{
var name = 'userId';
var value
value = document.forms(0).CAMUserId.value;
document.cookie = name+"="+value+";path=/"
+ ";CRN=content"
+ ";Locale=en-us"
+ ";productLocale=en"
+ ";format=HTML"
+ ";timeZoneID=EST"
+ ";useAccessibilityFeatures=false"
+ ";skin=corporate"
+ ";listViewSeparator=none"
+ ";automaticPageRefresh=30"
+ ";showOptionSummary=true"
+ ";linesPerPage=15"
+ ";displayMode=list"
+ ";columnsPerPage=3"
+ ";showWelcomePage=true";
}
//createCookie();
</SCRIPT>
</HEAD>
<BODY>
<form action=http://server-name/ibmcognos/bi/v1/disp
id=form1
name=form1">
<input type=text name=CAMUserId value=""></input>
<input type=button value="Submit" id=submit1 name=submit1
onclick="javascript:createCookie();submit();"></input>
</form>
</BODY>
</HTML>