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

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