Posts

Showing posts with the label Session

Session Management Techniques in ASP.Net

Image
Session are the server side method of managing the state of an application i.e. all the web applications' state related info will be stored on server side if we use this technique. The advantages of using Session State are Better security Reduced bandwidth The disadvantages of using Session state are More resource consumption of server. Extra code/care if a Web form is used Using Session State ASP.NET allows us to save values using Session state. It is a global storage mechanism that is accessible from all pages in the Web application. Session state is stored in the Session key/value dictionary . This information will be user specific i.e. for each user separate dictionary will be created and no one can access other session information. below is the Example usage of sessions. global.asax void Session_Start( object sender, EventArgs e) {     // Code that runs when a new session is started     Session[ " number" ] = 0 ; } // Web forms Ses...