asp.net session management example | using session in asp.net C# | what is session in asp.net youtube video hindi
manojbkalla
73 views
7 slides
Apr 30, 2021
Slide 1 of 7
1
2
3
4
5
6
7
About This Presentation
asp.net session management example | using session in asp.net C# | what is session in asp.net hindi.
Asp.Net, PHP MYSQL, Angular, ReactJS, C, C++ home training tutor in mumbai, surat, jodhpur, malad, kandivali, thakur complex, baroda, ahemdabad.
Size: 98.02 KB
Language: en
Added: Apr 30, 2021
Slides: 7 pages
Slide Content
ASP.NET SESSION Contact for personalized handholding training : +91 98691 66077 My YouTube Channel: https://www.youtube.com/channel/UC8S7RAZmQcieKYMleXq4Ttw Asp.Net Session Video Theory Lecture : https://www.youtube.com/watch?v=ixactZ9yWhU
Contact for personalized handholding training : +91 98691 66077 WHAT IS SESSION? Session provides a facility to store information on server memory not in browser. Session created in server memory. It can store any type of object. (System.Object)
Contact for personalized handholding training : +91 98691 66077 WHY WE NEED SESSION? HTTP is stateless protocol, its forgot everything after response. To keep some data in process we required SESSION. Session keep our valuable and important data on server, On any page we can call the same.
Contact for personalized handholding training : +91 98691 66077 ADVANTAGES: Help to maintain user data all over the application. Easy to implement. Store any kind of Object. Store / Keep each User data store separately. Its Very Much Secure.
Contact for personalized handholding training : +91 98691 66077 DISADVANTAGES: Default session timeout is 20 minutes. Loss of Data when session expired. More session more burden on server. Overhead involved in serializing and De-Serializing session data
Contact for personalized handholding training : +91 98691 66077 SYNTAX: Session[“NAME OF SESSION”] = <OBJECT> EXAMPLE: Session[“LoginUser”] = txtUserName.Text; (This will create a SESSION called LOGINUSER.) HOW TO CREATE A SESSION?
Contact for personalized handholding training : +91 98691 66077 EXAMPLE: string UserName = Convert.ToString(Session[“LoginUser”]); (This will convert session object LOGINUSER into string.) HOW TO USE A SESSION?