application state real time example Part 68

  • دعنا نشارك هذا :
ترتيب الدرس : 68
المدة : 00:11:31
التحكم :
Text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.


All ASP .NET Text Articles

All ASP .NET Slides

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic

Application state variables are global, and all sessions have access to them. So, these variables can be used to track the number of users online.

Every time a new user connects to your application, we want to increase the number of users online by 1. Along, the same lines, when ever a user session ends, then we need to decrease the number of users online by 1.

But how do we know, when a new user connects to our application. Session_Start() event is fired when ever a new session is established. When the session ends, Session_End() event is fired. The event handlers are in global.asax file.

By default, the browser instances share the session cookie. To have a new session id assigned, when a new browser instance requests the webform, set cookieless"true" for the sessionstate element in web.config.

سيتم تفعيل التعليقات قريبا

Sep 23, 2020 07:32:24