Pages

Friday 13 April 2012

Create the session in ASP .Net


//Create the session 


Session["Name"] = "Rohit Prakash";
//orSession.Add("Name","Rahul");

//retrieving the session any where in the application/page

string Name = (string)Session["Name"];


Off - No session state will be stored
InProc - (The Default) Session state exists within the process the web is using
StateServer - Session data is sent to the configured stateserver service
SQLServer - Session data is store in the configured sql server database


No comments:

Post a Comment