So just to clarify,

I would like the user to go to "a" specific site after logging out in
Weblogin.  Once the user logs out, they should be redirected to "
www.lsa.umich.edu", for e.g.

Thanks,

                    -Shanti

On Fri, Sep 19, 2014 at 12:09 PM, Shanti Suresh <sha...@umich.edu> wrote:

>
> 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

Reply via email to