This is an interview question asked a month ago….
Do session use cookies? If so,how do they do so?
Assume Session["UserId"]=1 how does this session variable uses cookies internally? If so, what will be the name of the cookie and what is the value of that cookie….
Whilst the data its self is stored on the server (or in SQL if configured that way), there needs to be a way to associate session data with specific users.
By default this is done with a cookie, but you can configure cookieless in which case the unique id is stored in the URL.
From Microsoft:
http://msdn.microsoft.com/en-us/library/ms972429.aspx