COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: kalyan_sekhar1 on 29 Oct 2005 07:13:21 AM

Title: [Closed] CAM PASSPORT issue
Post by: kalyan_sekhar1 on 29 Oct 2005 07:13:21 AM
Hi all,

When the end client checks the report and be idle for 1hour, the Cognos session got expired. So i took a cam_passport cookie and defining it at the client side as mentioned below

function getCookie(name) {

Ã,  var dc = document.cookie;
var CGNS_CK;
Ã,  var prefix = name + "=";
Ã,  var begin = dc.indexOf("; " + prefix);
Ã,  if (begin == -1) {
Ã,  Ã,  begin = dc.indexOf(prefix);
Ã,  Ã,  if (begin != 0) return null;
Ã,  } else
Ã,  Ã,  begin += 2;
Ã,  var end = document.cookie.indexOf(";", begin);
Ã,  if (end == -1)
Ã,  Ã,  end = dc.length;
CGNS_CK=unescape(dc.substring(begin + prefix.length, end));

document.cookie="cam_passport="+CGNS_CK+";path=/;expires="+expireDate;
alert(document.cookie);
}

In the name i am passing "cam_passport", eveyrthing is fine until i am using the reports. Now one strnage thing happens when i click on the PDF or Excel icons. The cam passport value is changing and the complete text is different , becuase of that i am getting logged out. How to solve this issue

Thank
Title: Re: CAM PASSPORT issue
Post by: MFGF on 31 Oct 2005 02:04:30 AM
Hi,

A far easier solution to the passport timeout is to change the timeout value in Cognos Configuration, if one hour is not long enough.  Select the Authentication folder, and modify the 'Inactivity timeout in seconds' from 3600 to whatever you need it to be.

Best regards,

MF.