title: Configure session cookie name in Grizzly
body: <p>I'm using Grizzly 2.3.24 as standalone webserver for my application. Since <a href="https://java.net/jira/browse/GRIZZLY-1798" rel="nofollow noreferrer">Grizzly-1798</a> has been closed, I'd like to implement my own SessionManager. But it seems, I'm lacking the configuration option to set the default session cookie name.</p>
  
  <p>What works is setting the desired cookie name just before I obtain the session, but that seems kinda crazy, no?</p>
  
  <p>Here an example accessing the session in a Jersey resource:</p>
  
  <pre><code>@GET
  public Response testGetSession(@Context Request request) {
      request.setSessionCookieName("mySessionCookie");
  
      Session session = request.getSession();
      log.info("Got session id {}", session.getIdInternal());
  
      return Response.ok().entity("hallo").build();
  }
  </code></pre>
  
  <p>If I don't specify it with <code>request.setSessionCookieName()</code>, it defaults to <code>JSESSIONID</code>.</p>
  
  <p>I understand, it'd be possible to do this in a <code>RequestFilter</code> for all requests, but do I really need to go down that path?</p>
  
  <p>My expectation was that the <code>SessionManager</code> would be responsible for defining the cookie name.</p>