Category - Session
Results 6 - 10 of 20
18 Nov 2021 18 Nov 2021 0 Comments  696 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained, how to set Session Timeout value in ASP.Net Core application.

Unlike previous ASP.Net applications, the Session Timeout value is set inside the Startup.cs class in ASP.Net Core applications.
18 Nov 2021 18 Nov 2021 0 Comments  548 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained, how to access HttpContext.Current.Session in .Net Core application.

Unlike previous ASP.Net applications, the Session object is not available under the HttpContext.Current property, instead it is available in the HttpContext class in ASP.Net Core applications.
18 Nov 2021 18 Nov 2021 0 Comments  656 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained, how to solve the following error in ASP.Net Core.

System.InvalidOperationException: Session has not been configured for this application or request.

The above error occurs when Session state is used in ASP.Net Core application without configuring the application.

This article will illustrate how to configure and enable Session state in ASP.Net Core applications.
18 Nov 2021 18 Nov 2021 0 Comments  469 Views
Here Mudassar Ahmed Khan has explained, how to enable Session in ASP.Net Core.

By default, Session State is disabled in ASP.Net Core applications i.e. ASP.Net Core MVC and ASP.Net Core Razor Pages.

This article will cover the steps to enable Session Sate in ASP.Net Core applications.
28 Oct 2021 28 Oct 2021 0 Comments  1229 Views
Here Mudassar Ahmed Khan has explained with an example, how to get HttpContext.Current.Session value in JavaScript or jQuery with ASP.Net.

Session object or Session variable is stored on Server and hence in order to get its value in JavaScript or jQuery, an AJAX call will be done to the Server Side method in ASP.Net using C# and VB.Net.
Results 6 - 10 of 20