title: How to set a different session cookie name for every connector?
body: <p>Currently I set the session cookie name in an embedded Jetty via the follow code:</p>
  <pre><code>ServletContextHandler handler = new ServletContextHandler( ServletContextHandler.SESSIONS );
  handler.setInitParameter( SessionHandler.__SessionCookieProperty, &quot;SESSIONID&quot; + port );
  setHandler( handler );
  </code></pre>
  <p>But then all connectors use the same session cookie name. But I want different session cookie names on different connectors.</p>
  <p>The cause of my problem is that</p>
  <ul>
  <li>I have HTTP and HTTPS connectors</li>
  <li>for a HTTPS connection a <code>secure</code> session cookie is send</li>
  <li>It is not possible to override a <code>secure</code> cookie with an HTTP connection in the most browsers.</li>
  <li>After a secure cookie from a HTTPS connection it is not possible to work on a HTTP connection anymore until all browser tabs are closed. Some peoples does not close it for weeks. The server send repeatedly new session cookies but the browser does not save it.</li>
  <li>I can restart the server, remove the HTTPS connector. All will not work until a browser restart.</li>
  </ul>
  <p>A simple fix would be to set different session cookies for different ports or for different protocols. Is this possible for with Jetty?</p>