Quantcast
Channel: SCN : Discussion List - BI Platform
Viewing all articles
Browse latest Browse all 5403

Custom page session not working

$
0
0

Hi All,

 

I have modified custom.jsp file to customize BI launchpad, where in this page I put code to display logon form and after form submission it will go to Action.jsp to validate credentials using below code.

 

*********************************************************************************

// If no session already exists, logon using the specified parameters.

 

 

if (enterpriseSession == null)

{

  try

  {

  // Log on to BusinessObjects Enterprise

  enterpriseSession = CrystalEnterprise.getSessionMgr().logon(strUserName,strPassword, "XXX:6400" ,strAuthType );

  defaultLogonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();

  enterpriseSession = CrystalEnterprise.getSessionMgr().logonWithToken(defaultLogonToken);

 

  // Store the IEnterpriseSession object in the session.

  session.setAttribute("EnterpriseSession", enterpriseSession);

 

 

  // Create the IInfoStore object.

  IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");

 

 

  // Store the IInfoStore object in the session using the

  // helper functions.

  session.setAttribute("InfoStore", iStore);

 

 

  

  // Store the logon token for later use.

  session.setAttribute("token", defaultLogonToken);

  }

  catch (SDKException e) {  sSuccessFailMsg = e.getMessage();

 

*********************************************************************

 

This code is working fine and I am able to logon and go to home page, below is the issue I am facing can you please let me know how to solve this issue.

 

 

Once I logon to BI launchpad, if I refresh web page it's redirecting me to logon page again and also in next tab if I use same URL it's asking to to enter logon details.

 

Please lt me know how to use defaultlogon token to login without entering credentials.

 

Thanks,

Mani


Viewing all articles
Browse latest Browse all 5403

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>