Skip to Content
avatar image
Former Member

how to end session opened by custom.jsp

Hello Guy's,

I have implemented a custom.jsp for BI 4.2,
a dashboard is using this custom.jsp to bypass login page by an enterprise account,
but closing the dashboard does not close the custom.jsp session seen in CMC=>Sessions,

I am getting honderds of sessions being open in CMC for each time dashboard has been opened by user,

is there any method to implement in my custom.jsp code so end the session when browser windows is closed ?
"see below for my code"
Thanks in advance


<%@ taglib prefix="rs" uri="http://www.businessobjects.com/resource/rs" %> <%@ page language="java" contentType="text/html;charset=utf-8" %> <%@ page import="com.businessobjects.bip.core.web.context.SessionHelper" %> <%@ page import="com.businessobjects.bip.core.web.logon.LogonConstants" %> <%@ page import="com.businessobjects.bip.core.web.utils.Encoder" %> <%@ page import="com.businessobjects.opendoc.HandleOpenDocParams" %> <%@ page import="com.businessobjects.opendoc.OpenDocBean" %> <%@ page import="com.businessobjects.opendoc.OpenDocConstants"%> <%@ page import="com.businessobjects.opendoc.OpenDocShare"%> <%@ page import="com.businessobjects.opendoc.OpenDocUtils" %> <%@ page import="com.businessobjects.swd.shared.actioncache.CafActionProperty" %> <%@ page import="com.businessobjects.swd.shared.actioncache.ICafAction" %> <%@ page import="com.businessobjects.webutil.ApplicationUtils" %> <%@ page import="com.businessobjects.webutil.clientaction.ActionData" %> <%@ page import="com.businessobjects.webutil.clientaction.ActionHelper" %> <%@ page import="com.businessobjects.webutil.clientaction.ClientActionException" %> <%@ page import="com.businessobjects.webutil.PlatformConstants"%> <%@ page import="com.sap.security.core.server.csi.util.URLEncoder" %> <%@ page import="com.sap.security.core.server.csi.XSSEncoder" %> <%@ page import="com.businessobjects.servletbridge.customconfig.ConfigReader"%> <%@ page import="java.io.IOException" %> <%@ page import="java.util.HashMap" %> <%@ page import="java.util.Locale" %> <%@ page import="java.util.Map" %> <%@ page import="com.businessobjects.swd.security.SecurityUtils"%> <%@ page import="com.businessobjects.swd.security.SecurityUtils.ProcessingException"%> <%@ page import="com.businessobjects.webutil.PlatformConstants"%> <%@ page import="com.crystaldecisions.sdk.framework.*" %> <%@ page import="com.businessobjects.foundation.exception.*" %> <%@ page import="com.crystaldecisions.sdk.exception.*" %> <%@ taglib uri='/WEB-INF/fmt.tld' prefix='fmt'%> <%@ taglib uri='/WEB-INF/c.tld' prefix='c'%> <%@ taglib uri='/WEB-INF/c-rt.tld' prefix='c_rt'%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib prefix="cwl" uri="http://www.businessobjects.com/jsf/bip.core.web.logon"%>

<% { IEnterpriseSession sess = CrystalEnterprise.getSessionMgr().logon("BO","azerty123","localhost:6400","secEnterprise"); String token = sess.getLogonTokenMgr().createLogonToken("",120,100); String tokenEncode = URLEncoder.encode(token,"UTF-8"); /* response.sendRedirect("http://localhost/BOE/OpenDocument/opendoc/openDocument.jsp?" + request.getQueryString() + "&token=" + tokenEncode);*/ /*request.getRequestDispathcer("openDocument.jsp?" + request.getQueryString() + "&token=" + tokenEncode);*/ response.sendRedirect("openDocument.jsp?" + request.getQueryString() + "&token=" + tokenEncode); } %>
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers