I've setup a custom trusted identity provider. It logs the user into SharePoint just fine - however, the problem is that user stays logged in even after a browser restart.
The trusted identity provider website itself logs out, but SharePoint doesn't ask the identity provider to confirm login.
After some investigation it appears that for some reason SharePoint is setting the FedAuth cookie as a persistent cookie instead of a session cookie (whereas the identity provider set itself uses a session cookie).
How can I tell SharePoint to make the FedAuth cookie be a session cookie instead of a persistent cookie?