<div dir="ltr">Hi shibboleth users ,<div><br></div><div>we have successfully implemented the <span style="background-color:rgb(255,153,0)">lazy session</span>, within our &#39;protected application&#39; , now the issue is how to achieve the following requirements :</div><div><br></div><div>1)we want to use shibboleth only for authentification so we want to fully use the application Session.</div><div>2) there will be no shibboleth session with same &#39;uid&#39; in another words , we have to maintain only one session for every uid connected (this is implemented in application already using single sign out filter for CAS ).</div><div><br></div><div><div><br></div><div>i have the following code in filter , so that it redirect to SP when there is no shib-session-id , but i think this code is not sufficient because it&#39;s also rely on the shib-session-id from Headers :</div><div><br></div><div>        <span class="" style="white-space:pre">        </span>String shibSession = request.getHeader(&quot;Shib-Session-ID&quot;);</div><div>    <span class="" style="white-space:pre">                </span>if (StringUtils.isEmpty(shibSession)) {</div><div>    <span class="" style="white-space:pre">                        </span>LOGGER.info(&quot;########## SHIB SESSION ######  &quot; + shibSession);</div><div>    <span class="" style="white-space:pre">                        </span>response.sendRedirect(&quot;<a href="http://sp.example.com/Shibboleth.sso/Login?target=http://sp.exaple.com/App/">http://sp.example.com/Shibboleth.sso/Login?target=http://sp.exaple.com/App/</a>&quot;);</div><div><span class="" style="white-space:pre">                                </span>return;</div><div><br></div><div>    <span class="" style="white-space:pre">                </span>}</div><div>        </div><div>        <span class="" style="white-space:pre">        </span>else{</div><div>    <span class="" style="white-space:pre">                        </span>filterChain.doFilter(request, response);</div><div>    <span class="" style="white-space:pre">        </span>    <span class="" style="white-space:pre">        </span>LOGGER.info(&quot;########## END FILTER ##########&quot;);</div><div><br></div><div>    <span class="" style="white-space:pre">                        </span>return;</div><div><br></div><div>        <span class="" style="white-space:pre">        </span>}</div><div><br></div><div><span class="" style="white-space:pre">                </span></div></div></div>