Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Does ASP.NET associate a request with a session?

Is there a cookie automatically placed on the user's machine? Or is it somehow associated with the requester's IP address? Or maybe in the ViewState? Elementary question, I know, but I've had a hard time finding an answer.

like image 501
Brian Sullivan Avatar asked Sep 16 '26 14:09

Brian Sullivan


1 Answers

In IIS, under ASP.NET's configuration there is a State Management Tab which has a setting called "Cookieless mode" which has the options of:

UseUri

UseCookies

AutoDetect

UseDeviceProfile

Typically, "Use Cookies" is selected and thus a cookie is used.

like image 87
2 revs, 2 users 95%JB King Avatar answered Sep 18 '26 12:09

2 revs, 2 users 95%JB King