Session cookies expire depending on browser and browser. I could not find any link giving the current specification for each browser. It used to be that session cookies would be destroyed when the browser was closed, but some browsers now have settings that, if enabled, will force session cookies to remain closed. For example, Firefox "When Firefox starts: show my windows and tabs since last time", this will lead to unexpected surprise. The same thing happens when you start: "Continue when I stopped" in Chrome.
I donβt like SharePoint anyway, so I havenβt used it for a while, but as I recall, it uses ASP.Net Forms Authentication, pulling the configuration from web.config, like any other ASP.Net site, This, as they say, You are not very concerned about the timeout of your cookie. What you need is the timeout of your server-side session token - that is, how long the data contained in the specified cookie will be recognized by the server. This is set by the timeout property in the forms tag of the web.config file for the ASP.Net application:
<system.web> <authentication mode="Forms"> <forms timeout="2880" /> </authentication> </system.web>
Grinn
source share