Cookie _xsrf: how to change the default expiration time of 30 days?

I understand the _xsrf cookie is inserted by Jupyterlab [ How do the xsrf tokens get inserted into urls?]. Inspecting this cookie in Chrome, the expiration time is set to 30 days. So a couple of questions:

  1. Expiration time of 30 days seems to be a pretty long setting for web-application. (We got flaks from security team). Is there any particular reason for that? What would be the implication if this value is reduced to say 24 hours, or even say 10 hours?
  2. Is there any way to change this expiration time of 30 days to some other values? For example, if I want to change it to 10 hours, is there any existing way to configure it?
  3. If there is no existing config supporting the change, where can changes be made to make the change? I have browsed the jupyterlab source code and couldn;t quite figure out where this expiration time of 30 days is set (trying to find something like xsrf or Date.now( ) + 30 * 60 * 60 * 24 or something similar).

Thanks very much in advance!

We have the same request - need ability to set expiration time for xsrf cookie.