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 are the different types of proxy patterns?

598


What is difference between session and viewstate?

477


Explain the asp.net session state modes.

622


In order to get assembly info which namespace we should import?

531


What is the main function of url routing system in asp.net mvc? : asp.net mvc

502






i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?

1517


Explain file-based dependency and key-based dependency.

575


What is the syntax for datagrid and specifying columns?

2097


What are the new login controls in asp.net 2.0?

525


What is asp net application object?

545


What is web api config?

548


if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....

1604


What is the difference between CLICK and MOUSE DOWN Event ?

588


Can we create a multiple user simultaneously ?

588


What is the viewstate in asp.net?

577