-
What is the difference between:
HttpContext.Current.Request.Cookies[“ASP.NET_SessionId”].Value
and
System.Web.SessionState.HttpSessionState.SessionId
(while debugging, both of the values were always the same)
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.
Well there exists more than one method of how ASP.NET handles a session. It’s configurable by the web.config for example.
One of them is by cookies. Another one is by putting the session ID inside of the url. I boldly presume you won’t be able to find the session ID in the cookie collection in that second case.