diff --git a/Documentation/Books/Users/Foxx/FoxxSessions.mdpp b/Documentation/Books/Users/Foxx/FoxxSessions.mdpp index 89404e2a57..bd34c01ca2 100644 --- a/Documentation/Books/Users/Foxx/FoxxSessions.mdpp +++ b/Documentation/Books/Users/Foxx/FoxxSessions.mdpp @@ -21,7 +21,7 @@ If *type* is set to *"cookie"*, the session cookie will be updated after every r * *type* (optional): sessions type, currently only *"cookie"* and *"header"* are supported. Default: *"cookie"*. * *cookieName* (optional): name of the session cookie if using cookie sessions. If a *cookieSecret* is provided, the signature will be stored in a cookie named *cookieName + "_sig"*. Default: *"sid"*. * *cookieSecret* (optional): secret string to sign session cookies with if using cookie sessions. - * *headerName* (optional): name of the session header if using header sessions. Default: *"X-Session-Id"*. + * *headerName* (optional): name of the session header if using header sessions. Default: *"x-session-id"*. * *autoCreateSession* (optional): whether a session should always be created if none exists. Default: *true*. @EXAMPLES diff --git a/js/server/modules/org/arangodb/foxx/sessions.js b/js/server/modules/org/arangodb/foxx/sessions.js index 7ff38b9a8e..4314233157 100644 --- a/js/server/modules/org/arangodb/foxx/sessions.js +++ b/js/server/modules/org/arangodb/foxx/sessions.js @@ -159,7 +159,7 @@ function Sessions(opts) { throw new Error('Header name must be a string or empty.'); } if (!opts.headerName) { - opts.headerName = 'X-Session-Id'; + opts.headerName = 'x-session-id'; } } else { throw new Error('Only "cookie" and "header" type sessions are supported at this time.');