title: Merge multiple cookies into one
body: <p>In our application, we use cookies to set the authenticated SAML tokens and other information.
  This approach works for almost all scenarios.</p>
  
  <p>But if the customers have very lengthy private keys and certificates, the SAML tokens generated are going beyond the size a cookie can handle and hence the cookie is dropping the values as it exceeds 4K limit.</p>
  
  <p>The approach we thought was to break the cookie into multiple cookies so that one will hole SAML token, other cookies will hold user information and etc etc.
  Doing this is not a big deal as we just have to create multiple cookies.</p>
  
  <p>But the twist in tale is here, our application uses a framework which expects cookie with specific name and all values set in it.
  As we thought of breaking the values into multiple cookies, the further requests fail.</p>
  
  <p>I thought of having a filter which will intercept all requests and merge the multiple cookie values into one and feed it to the framework as it expects.</p>
  
  <ul>
  <li>Is that a right approach</li>
  <li>If so are there any utilities which will merge cookies into one and set it back to request so that framework can continue processing the request</li>
  </ul>