Understanding ASP.Net session life time

前端 未结 4 1301
面向向阳花
面向向阳花 2021-01-01 05:41

I am confused about ASP or ASP.Net session life time (or life cycle) concepts. More specifically, my confusions are:

  1. How does IIS decide when a new session sta
4条回答
  •  迷失自我
    2021-01-01 05:46

    Session is generally handled by generating a unique identifier as a cookie on the clients machine. This is usually a session cookie, so you can't easily get to it. When you visit a site that uses sessions, it looks for this cookie. If it doesn't find it, it creates a new one, thus creating a new session.

    One way to set the expire time is in the web.config, you can also set it in IIS by going to your website properties -> Home directory tab ->Configuration button -> Options Tab -> Session Timeout.

    You will not be able to access someone elses session data.

提交回复
热议问题