Hi All,
I've configured the logoutSuccess.jsp to execute a different redirect
based on referer.

Now I've migrate the environment to NAM 4.2 and the redirect stop
working (I remain on MAG /AGLogout with a blanck page).

How can I can modify the jsp?

Below the logoutSuccess.jsp

Thanks for your support
Maurizio


<%@ page language="java" %>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.novell.nidp.*" %>
<%@ page import="com.novell.nidp.authentication.local.X509C lass" %>
<%@ page import="com.novell.nidp.resource.*" %>
<%@ page import="com.novell.nidp.resource.jsp.*" %>
<%@ page import="com.novell.nidp.ui.*" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");

Locale locale = request.getLocale();
String strLanguageCode = locale.getLanguage();
NIDPResource resource =
NIDPResourceManager.getInstance().get(JSPResDesc.g etInstance(),
locale);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//<%=strLanguageCode%>">
<html lang="<%=strLanguageCode%>">
<head>
<!-- <meta http-equiv="Content-Type" content="text/html; UTF-8"> -->
<link rel="stylesheet" href="<%= request.getContextPath()
%>/images/hf_style.css" type="text/css">
<style type="text/css" media="screen"><!--
#title { position: relative; top: 20px; left: 5px; color: white;
z-index: 4}
#login { text-align: center }
td#linklist div {margin-bottom: 1em}
=--></style>
<META HTTP-EQUIV="Content-Language" CONTENT="<%=strLanguageCode%>">
<title></title>
<meta http-equiv="Content-Type" content="text/html; UTF-8">

<script language="JavaScript" type="text/javascript">
function startsWith(str, prefix) {
if (str.length < prefix.length)
return false;
for (var i = prefix.length - 1; (i >= 0) && (str[i] === prefix[i]);
--i)
continue;
return i < 0;
}
function redirectToHome()
{
var url;
var referral = '<%= request.getHeader("referer")%>';
url = 'http://www.domain.com';
if (startsWith(referral,url)) {
top.location.href="http://www.domain.com";
return;
}
url = 'http://site1.domain.com';
if (startsWith(referral,url)) {
top.location.href="http://site1.domain.com";
return;
}
url = 'http://site2.domain.com';
if (startsWith(referral,url)) {
top.location.href="http://site2.domain.com";
return;
}
top.location.href="http://www.domain.com/default_i.asp";
}
</script>


</head>
<body marginwidth="0" marginheight="0" topmargin="0"
onLoad="redirectToHome();" >
</body>
</html>
<% request.getSession().invalidate(); %>


--
6498166
------------------------------------------------------------------------
6498166's Profile: https://forums.netiq.com/member.php?userid=554
View this thread: https://forums.netiq.com/showthread.php?t=55895