I just saw in my browser a cookie with the name ASP.NET_SessionId and an expiration of “When I close my browser”.
From where this expiration time coming, and how can I configure it?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
asp.net sets a cookie which is
NOT PERSISTENT– meaning you didn’t set any Expiration time.So the expiration time is when you close the browser.
If you set expiration time – it goes from the memory area into the Hard Drive as a file !
expiration is set ? yes
in Hard Drive as a file.
this is called persistent
expiration is set ? no
this is called non-persistent as ASP.NET_SessionId cookie in memory.
expiration setting - how ?