• Redirect to a custom page on logout

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #8820  by qu3ll0
 
Hi gentlemen,

I'm trying to redirect users to a custom page on OpenKM logout and to do so I've modified the file \OpenKM\admin\logout.jsp from
Code: Select all
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.openkm.core.Config" %>
<% 
	session.invalidate();
	response.sendRedirect("index.jsp");
	//response.sendRedirect(request.getContextPath()+"/index.jsp");
%>
to
Code: Select all
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.openkm.core.Config" %>
<% 
	session.invalidate();
	response.sendRedirect("http://www.mydomain.com/logout.jsp");
	//response.sendRedirect(request.getContextPath()+"/index.jsp");
%>
but this does not work.

Does anyone know how to make redirect working?

Thanks in advance,

Qu3!

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.