Hello,

Hoping someone can help.

We are trying to kill send code from logout screen to kill the browsers cookie.
We are using this but does not seem to work.
The desired result is that the users browser session is killed immediately when 
/cas/logout is initiated.

Can anyone see what we are doing wrong / or are missing?


--%>
<jsp:directive.include file="includes/top.jsp" />
<%
   Cookie cookie = null;
   Cookie[] cookies = null;
   // Get an array of Cookies associated with  DCIS
   cookies = request.getCookies();
   if( cookies != null ){
      for (int i = 0; i < cookies.length; i++){
         cookie = cookies[i];
         if((cookie.getName( )).compareTo("MOD_AUTH_CAS_S") == 0 ){
            cookie.setMaxAge(0);
            response.addCookie(cookie);
         }
      }
  }
  else{
      return;
  }
%>


Thank You;

Chris Cheltenham
[email protected]<mailto:[email protected]>
SwainTechs
10 Walnut Grove Rd
Suite 110
Horsham, PA
19044

888-905-5767 / X407


-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Reply via email to