what is session,cokkies in asp.net??

Answer Posted / santoshkumar

When a user connects to an ASP.NET application, a unique session ID will be affiliated with the user. If nothing is put in the session however, no cookie will be sent to the browser. This means that the user will get a new session ID the next time a new url is open or the page is refreshed. If something is put on the session (HttpContext.Current.Session["Hello] = "hello") however, ASP.NET will issue a cookie called ASP.NET_SessionId. This cookie contains the user's session ID and the cookie will expire at the end of the session (when you close your browser).

If the user logs in, a second cookie will be issued. This cookie is usually called .ASPXAUTH, and states that the user is logged in. It's encrypted, but probably contains some information about who the user is etc. This cookie sets ASP.NET apart from other web applications, because login-information is usually affiliated with the session ID.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What r the asp.net list controls and difference between them?

518


Explain the use of dataadapter.

591


What does aspcompat="true" mean?

573


What are the types of authentication in asp.net?

561


Explain managed code an un-managed code.

612






What are uri parameters?

557


Where is asp.net view state stored?

527


What is an asp.net web form?

642


What are client activated objects?

571


i want the asp.net technical questions and answeres

1613


Explain the purpose of storyboard.targetproperty.

531


Is asp.net 64-bit enabled? How?

607


what is the difference between response.write() and response.output.write()?

714


What are the event handlers that can be included in the Global.asax file?

594


Explain the difference between asp.net mvc and asp.net webforms

598