Greetings,
How do I get Cosign to go the specific site in the logout script?
Within a JSP, I have:
--------JSP Logout snippet:------
// Re-direct to Central Logout URL:
String site = new String("https://weblogin.umich.edu/cgi-bin/logout");
response.setStatus(response.SC_MOVED_TEMPORARILY);
response.setHeader("Location", site);
----- End of Logout snippet-----
For reference, the full Cosign Logout JSP is:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<html>
<head>
<body>
<%
String[] serverNameParts = HttpServletRequest.getServerName().split(".");
String serviceName;
if(serverNameParts != null && serverNameParts.length != 0){
serviceName = serverNameParts[0];
} else {
serviceName = "";
}
// Remove the service Cookie, "cosign-service.umich.edu"":
Cookie killServiceCookie = new Cookie(serviceName+"umich.edu", null);
killServiceCookie.setMaxAge(0);
killServiceCookie.setPath("/");
killServiceCookie.setSecure(true);
response.addCookie(killServiceCookie);
// Re-direct to Central Logout URL:
String site = new String("https://weblogin.umich.edu/cgi-bin/logout");
response.setStatus(response.SC_MOVED_TEMPORARILY);
response.setHeader("Location", site);
%>
</body>
</html>
Thanks!
-Shanti
------------------------------------------------------------------------------
Slashdot TV. Video for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Cosign-discuss mailing list
Cosign-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cosign-discuss