Oidc connection without database

If you want to keep using Cookies, you could increase the max_header_value_length and max_request_line_length for cowboy_http, e.g:

config :my_app, MyAppWeb.Endpoint,                                                                                                                 
  http: [
    protocol_options: [
      max_request_line_length: @req_line_length, 
      max_header_value_length: @header_value_length
    ]
  ]

If you want sharing between servers, maybe take a look at mnesia. Not an expert there, put it has support for clustering.