<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
font-size:8.5pt;
font-family:Menlo;
color:black;}
p.p2, li.p2, div.p2
{mso-style-name:p2;
margin:0in;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<pre style="background:#E5ECF3"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Hold on, we will try “</span><b><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Session</span></b><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"> On” !<o:p></o:p></span></pre>
<pre style="background:#E5ECF3"><span style="color:black"><o:p> </o:p></span></pre>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">users <users-bounces@shibboleth.net> on behalf of Woolf, Carl <Carl_Woolf@hms.harvard.edu><br>
<b>Date: </b>Thursday, January 26, 2023 at 10:33 AM<br>
<b>To: </b>users@shibboleth.net <users@shibboleth.net><br>
<b>Subject: </b>HttpSession on app protected by mod_shib<o:p></o:p></span></p>
</div>
<p class="p1"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">Greetings,</span></span><o:p></o:p></p>
<p class="p1"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span></span><o:p></o:p></p>
<p class="p1"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">This could be more of an apache question than a Shibboleth question, but perhaps someone could help us out?</span></span><o:p></o:p></p>
<p class="p1"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span></span><o:p></o:p></p>
<p class="p1"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">We are trying to maintain an HttpSession in our app, in addition to the app being protected within a Shibboleth session. Any guidance about how to get the (I think)
standard JSESSIONID cookie to persist and facilitate the HttpSession?</span></span><o:p></o:p></p>
<p class="p1"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span></span><o:p></o:p></p>
<p class="p1"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">In our apache config, we have a proxy for our app’s url, which goes to a tomcat that is co-located with apache. We also have a LocationMatch which protects our url’s
with mod_shib. But even without the mod_shib protection in apache’s config, we are not able to persist an HttpSession. (And even without a LocationMatch, for that matter.) So, e.g., when we run our “sa” locally, without apache, we get a persistent HttpSession.
But with the below in our apache config, if we ‘front’ apache on our app, we no longer get the session.</span></span><o:p></o:p></p>
<p class="p1"><span class="s1"><span style="font-family:"Calibri",sans-serif"> </span></span><o:p></o:p></p>
<p class="p1"><span class="s1">ProxyPass "/sap/" "http://our-host:8080/sa/"</span><o:p></o:p></p>
<p class="p1"><span class="s1">ProxyPass "/sapm/" "http://our-host:8080/sa/"</span><o:p></o:p></p>
<p class="p2"> <o:p></o:p></p>
<p class="p1"><span class="s1"><LocationMatch "/sapm"></span><o:p></o:p></p>
<p class="p1"><span class="s1"></LocationMatch></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-ligatures:standardcontextual"> </span><span style="font-size:12.0pt;mso-ligatures:standardcontextual"><o:p></o:p></span></p>
<p class="MsoNormal"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;mso-ligatures:standardcontextual">Any guidance would be welcome!</span></span><span style="font-size:12.0pt;mso-ligatures:standardcontextual"><o:p></o:p></span></p>
<p class="MsoNormal"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;mso-ligatures:standardcontextual"> </span></span><span style="font-size:12.0pt;mso-ligatures:standardcontextual"><o:p></o:p></span></p>
<p class="MsoNormal"><span class="s1"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;mso-ligatures:standardcontextual">Thanks, - Carl</span></span><span style="font-size:12.0pt;mso-ligatures:standardcontextual"><o:p></o:p></span></p>
</div>
</body>
</html>