My ASP.NET Web-Forms application has following configuration setting
<sessionState mode="StateServer" timeout=60" />
I believe, when a new session is created,
- A bucket is created on Server side (state service or in-proc) to store data for this user session, identifiable by a unique ID
- A cookie, named (ASP.NET_SessionId) is sent to browser with a unique ID.
Queries,
- How to set/control expiration duration of session (#1 above) on server side
- How to set/control expiration duration of cookie (#2 above) on client side
- With above configuration setting, the expiration for cookie on **Firefox** is set to (SESSION) and the cookie gets lost when browser is closed, while on **Chrome**, the expiration is set to (1 Year). How can these durations be controlled from within asp.net application? I want to set expiration on Firefox to 1 year as well