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.
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
asp.net session management example | using session in asp.net C# | what is session in asp.net youtube video hindi
1. 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
2. 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)
3. 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.
4. 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.
5. 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
6. 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?
7. 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?