C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Gopi Chand(8)
Tuhin Paul(3)
Jignesh Trivedi(3)
Anubhav Chaudhary(3)
Aarav Patel(2)
Aman Gupta(2)
Vithal Wadje(2)
Sourav Kayal(2)
Shweta Lodha(2)
Kumar Saurabh(2)
Abhimanyu K Vatsa(2)
Nidhi Sharma(1)
Riya Patel(1)
Sandhiya Priya(1)
Rajesh Gami(1)
Sardar Mudassar Ali Khan (1)
Praveen Kumar(1)
Mahesh Chand(1)
Ashish Bhatnagar(1)
Mark Pelf(1)
Dashrath Hapani(1)
Waqas Anwar(1)
Akshay Shedwad(1)
Dharmeshwaran S(1)
Saroj Barisal(1)
Abhishek Chadha(1)
Jitendra Mesavaniya(1)
Tahir Ansari(1)
Vijayaragavan S(1)
Nagaraj M(1)
Vipul Jain(1)
Arun Potti(1)
Anupam Maiti(1)
Sean Franklin(1)
Abhishek Yadav(1)
Mageshwaran R(1)
Bidyasagar Mishra(1)
Pritey Mehta(1)
Zain Ul Hassan (1)
Guest User(1)
Kishan Choudhary(1)
Akshay Phadke(1)
Nishant Mittal(1)
Santosh Kumar Adidawarpu(1)
Amit Mishra(1)
Vignesh Mani(1)
Ankur Mistry(1)
Ranjit Powar(1)
Manoj Kalla(1)
Fiyaz Hasan(1)
Manas Mohapatra(1)
Mathieu Mack(1)
Nilesh Jadav(1)
Rahul Bansal(1)
Gaurav Kumar Arora(1)
Sibeesh Venu(1)
Atul Rawat(1)
Francis Susaimichael (1)
Tom Mohan(1)
Rahul Kumar Saxena(1)
Yogendra Kumar(1)
Max McCarty(1)
Abhishek Kumar(1)
Santosh Gadge(1)
Shivprasad Koir Koirala(1)
Sourabh Somani(1)
Sagar Pardeshi(1)
Vinod Kumar(1)
Sandeep Singh Shekhawat(1)
Abhishek Jain(1)
Shashank Srivastava(1)
Suthish Nair(1)
Gaurav Gupta(1)
Deepak Sharma(1)
Akshay Teotia(1)
Arjun Panwar(1)
Vijay Prativadi(1)
Destin Joy(1)
Suresh Paldia(1)
Vivek (1)
Resources
No resource found
How to Implement Secure Session Management in Web Applications?
Apr 21, 2026.
Learn how to implement secure session management in web applications with best practices, step-by-step guide, and protection against session hijacking and XSS.
How to Implement Secure Session Management in Web Applications
Mar 24, 2026.
Master secure session management in web apps! Learn best practices for protecting user data, preventing hijacking, and ensuring authentication integrity. Node.js, React, .NET friendly.
Why Does Application Session Logout Users Automatically?
Feb 06, 2026.
Frustrated by unexpected app logouts? This article explains the common reasons behind automatic session terminations, from inactivity timeouts to security protocols.
Concurrent Login Control Using Session Count in ASP.NET WebForms
Dec 22, 2025.
Secure your ASP.NET WebForms app! Learn to control concurrent logins using session count, database tracking, and automatic session expiration. Enhance security and prevent misuse.
Building a Token Revocation + Session Tracking Engine for JWT
Nov 19, 2025.
Secure your JWT authentication with a robust token revocation and session tracking engine. Learn to build it with .NET, Redis, and Angular for enhanced security.
Preventing Session Hijacking and Cookie Theft in ASP.NET Core
Sep 09, 2025.
Protect your ASP.NET Core web applications from session hijacking and cookie theft! This guide covers essential security measures, including secure cookies (HttpOnly, SecurePolicy, SameSite), short session lifetimes, session ID regeneration, security stamp validation, and robust defenses against XSS and CSRF attacks. Implement MFA and monitor sessions to safeguard user data and prevent unauthorized access.
What is Local Storage, Session Storage, and Cookies?
Sep 02, 2025.
Understand the differences between Local Storage, Session Storage, and Cookies for web development. Learn how each storage option handles data persistence, storage capacity, and scope. Discover when to use Local Storage for long-term data, Session Storage for temporary information, and Cookies for authentication and tracking.
š How Do Blockchains Handle Forward Secrecy and Session Key Rotation?
Sep 01, 2025.
Explore how blockchains tackle forward secrecy and session key rotation, crucial for security beyond cryptography and consensus. Discover how session keys, key rotation, and privacy-focused blockchains like Zcash and Monero approximate forward secrecy despite the challenges of immutability and public auditability. Learn about future solutions like post-quantum cryptography and account abstraction for enhanced security.
Enforcing HIPAA Access Controls: Developerās Guide to RBAC, MFA, and Session Security
Jul 12, 2025.
Discover the essential access-control mechanisms required for HIPAA complianceārole-based access, unique user IDs, MFA, just-in-time privileges, session management, SSO/OIDC integration, and audit logging.
Sharing Session and Application data
Apr 21, 2025.
The request scope makes data available to multiple pages processing the same request. But in many cases, data must be shared over multiple requests.
Bootstrap5 Session Timeout Script (JS)
Mar 27, 2025.
This article presents a custom Bootstrap 5 session timeout script using JavaScript and jQuery. It ensures security by logging out inactive users, handling AJAX challenges, and supporting multilingual Bootstrap themes
ASP.NET Session State: Storing Data Beyond IIS Restarts
Mar 20, 2025.
?To maintain ASP.NET sessions after an IIS restart, configure the session state to use SQL Server, State Server, or a distributed cache like Redis instead of the default in-memory storage.
Mastering Session Management in ASP.NET Core with NCache
Oct 24, 2024.
Learn how to implement high-performance, scalable caching for ASP.NET applications, ensuring optimal session state handling, improved load balancing, and fault tolerance with NCache integration.
Application State vs Session State in Java
Sep 30, 2024.
State management in Java is vital for web applications, categorizing data into Application State and Session State. Application State shares data globally across users, ideal for configurations and caches, while Session State is user-specific and temporary, suitable for personal preferences and shopping carts.
Securing Sessions in Java Web Applications: Preventing Session Fixation and Replay Attacks
Aug 25, 2024.
Securing Sessions in Java Web Applications: Preventing Session Fixation and Replay Attacks
Best Practices for Managing Large Session States in ASP.NET MVC
Aug 14, 2024.
To manage large session states in ASP.NET MVC efficiently, follow best practices: minimize stored data, use serializable objects, enable session state compression, and implement distributed caching with Redis or Memcached.
Detect Session Changes in Dynamics 365 Customer Service App
Jun 21, 2024.
The Dynamics 365 Customer Service Workspace app aids agents in managing multiple sessions efficiently. Detecting session changes with JavaScript enhances context switching, productivity, and customer experience.
Multi-Browser Session Logout in ASP.NET Core Without SignalR
May 19, 2024.
The Automatic Multi-Browser Logout feature enhances the security and convenience of your online experience by ensuring that when you log out from one browser, you are automatically logged out from all other active sessions across different browsers and devices.
Client-Side Data Storage: Local & Session Storage in JavaScript
Apr 24, 2024.
This Article describes how to store data on the client side and the difference between local storage and session storage and their methods.
ViewData vs ViewBag vs TempData vs Session in .NET
Mar 30, 2024.
In ASP.NET, passing data between controllers and views is a common requirement for building dynamic web applications. ASP.NET provides several mechanisms for achieving this, including ViewData, ViewBag, TempData, and Session.
Protecting Your Web Application From Session Replay Attacks In Azure Cloud
Jan 14, 2024.
In today's world of increasing digital interconnectedness, online security threats are continuously increasing, and cybercriminals are finding new and innovative ways to exploit system vulnerabilities. One such type of attack is a Session Replay Attack. In this article, we will discuss what Session Replay Attacks are, their proper real-life use cases, implementation in Azure Cloud, countermeasures to minimize them, and how to handle them in .Net Core web applications. In today's world of increasing digital interconnectedness, online security threats are continuously increasing, and cybercriminals are finding new and innovative ways to exploit system vulnerabilities. One such type of attack is a Session Replay Attack. In this article, we will discuss what Session Replay Attacks are, their proper real-life use cases, implementation in Azure Cloud, countermeasures to minimize them, and how to handle them in .Net Core web applications.
Cookie vs. Session vs. Local Storage
Nov 06, 2023.
cookies are small pieces of data stored in a user's browser, often used for limited-size, temporary information like session tokens and user preferences. Session storage, on the other hand, serves as a repository for temporary data that persists only for the duration of a single page session, providing a larger storage capacity than cookies. It is accessible within the same browser tab or page and is more secure against certain attacks. In contrast, local storage is designed for persistent data that remains even after the browser is closed, offering a substantial storage capacity. It's accessible across various tabs and windows within the same browser but requires developers to be cautious about potential security vulnerabilities, particularly related to cross-site scripting (XSS) attacks.
CMD Session action in Desktop flow using Microsoft Power Automate
Jun 21, 2023.
Reading this article, you can learn how to execute the windows commands, Using Open CMD session action, Read from CMD session, Write to CMD session action and Close CMD session action with Desktop flow in Microsoft Power Automate.
Create Custom Session ID Manager
Mar 20, 2023.
In this article, we will look in to SessionIdManger and how to customise it.
Exploring Data Anonymization Techniques To Prevent Session Replay Attacks In E-Commerce
Feb 20, 2023.
In this article, you will learn how to explore Data Anonymization Techniques to Prevent Session Replay Attacks in E-Commerce.
Preventing Session Replay Attacks - Safeguarding Azure Cloud Websites
Feb 20, 2023.
Session replay attacks are a type of web application attack where an attacker records a user's interactions with a website or web application, including login credentials, and then replays them to impersonate the user.
Enable Session State In SharePoint 2019
Nov 22, 2022.
In this article, you will learn how to enable Session State in SharePoint 2019.
How To Get The Session Details In Dynamics 365 CRM Online
Nov 02, 2021.
In this article, you will learn how to get the session details in dynamics 365 crm online?
Web Security Vulnerabilities On User Session And Username Iteration
Jul 29, 2021.
In this article, you will learn about Web Security Vulnerabilities on User Session and Username Iteration.
Blazor Server - How To Store Encrypted Session Data In The Browser
Dec 18, 2020.
Learn how to enhance security in your Blazor Server applications by storing encrypted session data in the browser. Explore techniques to safeguard sensitive user information using ASP.NET Core and client-side storage mechanisms.
Use Of Session Attributes In A Custom Alexa Skill
Nov 02, 2020.
In this article I am going to demonstrate how to use a session attribute in a custom Alexa skill
Overview Of Session In ASP.NET
Aug 27, 2019.
In this article, I will explain the concept of ASP.NET sessions - how to create a session, and how we can use it in a session.
HTML5 Web Storage /Local Storage And Session Storage
Aug 16, 2019.
In this session, I will discuss the details of web storage and how we can implement web storage.
Angular 7 Login With Session Authentication Using React Form
Jun 21, 2019.
In this article, you will learn about Angular 7 login with session authentication using the React form.
Passing Data From Controller To View Using Session - Part Five
Oct 09, 2018.
In this article, you will learn how to pass strongly typed data from Controller to View using session, in which firstly, you should make a model class then populate its properties with some data then pass that object to the session as Value and pass magic Key as a string.
ASP.NET Core 2.0 Session State
Oct 09, 2017.
Using an empty project from a previous post, amend Startup class ConfigureServicee() method, and add services for session and its backing store.
Moving MVC Session State In Azure
Jun 17, 2017.
This article is for developers who are planning to move their MVC application to an Azure environment. This will also work as an alternative of default SQL Server session state in an MVC application.
Configuring Redis Session State In ASP.NET Core
Mar 03, 2017.
This article describes the steps required to configure Redis as a storage mechanism for session state in an ASP.NET Core MVC Application.
Configure SQL Server Session State In ASP.NET Core
Mar 01, 2017.
This guide covers setting up SQL Server as a session storage provider, configuring the connection string, enabling session middleware, and ensuring session persistence for scalable web applications.
Practical Approach To ASP.NET Web Services - Part Three - Session State In A Web Service
Dec 05, 2016.
In this article, you will learn about Session State in a Web Service using ASP.NET.
Throttling In WCF: Concurrent Instance and Session - Part Two
Jul 20, 2016.
In this article, you will learn about concurrent instance and session, using throttling in WCF.
Broken Authentication And Session Management And Its Prevention Mechanism
Jul 19, 2016.
In this article, you will learn about broken authentication and session management and its prevention mechanism.
Manage Session State In Web Service - Part Three
Jun 11, 2016.
In this article, I'm going to explain how we can use ASP.NET Session state in a Web Service.
Check Session Status From Client Side Using Ajax In ASP.NET MVC
Apr 25, 2016.
Learn how to efficiently check session status from the client side using Ajax in ASP.NET MVC. This tutorial covers the implementation of Ajax requests to verify session validity, ensuring seamless user experience.
Passing Data Using ViewData, ViewBag, TempData, Session Variables In ASP.NET MVC
Jan 16, 2016.
In this article we will learn passing data using ViewData, ViewBag, TempData, and Session Variables in ASP.NET MVC.
Difference Between Local Storage, Session Storage And Cookies
Jan 05, 2016.
In this article I'll tell you about the differences between Session Storage, Local Storage and Cookies.
HTML5 Web Storage Part 1 - Session Storage
Jan 03, 2016.
In this article you will learn about Session Storage in HTML5.
Manage Controller Specific Session In ASP.NET MVC 5
Dec 14, 2015.
In ASP.NET MVC 5, managing controller-specific sessions involves utilizing tools like HttpSessionStateBase to store and retrieve session data within controller actions.
How To Create Out of Process Session State In SQL Server
Nov 21, 2015.
In this article , I am explaining with a simple step by step storing Session State in a local or remote SQL Server with the help of SQL server authentication.
ASP.NET Session State Management With Redis (Local Server Farm Testing)
Oct 15, 2015.
In this article we will learn about ASP.NET Session State Management with Redis (Local Server Farm Testing).
Retrieve Session Values in ASP.NET
Aug 18, 2015.
This article describes how to retrieve all session values in ASP.NET.
Show Message on Redirect Without Using Session in ASP.Net MVC
Jun 29, 2015.
This article shows a simple solution in order to show message to the user even if an action of the controller returns RedirectResult, and without using a session.
How to Make a Login Form Using Session in ASP.Net C#
Jun 25, 2015.
This article shows how to make a Login Form using session state in ASP.Net C#.
How to Prevent Session Overlapping in Browser Through New Tab or Window
May 14, 2015.
In this article, I will explain how to prevent an overlapping of sessions in browser tabbing or using a new window.
String Class Methods in Java: Session 8
May 10, 2015.
This article provides a brief explanation of a few more string class methods used in Java to get the complete knowledge of string methods.
String Class Methods in Java: Session 7
May 09, 2015.
This article is a brief overview of a few more Java string methods for complete knowledge about string methods used in Java.
String Class Methods in Java: Session 6
May 07, 2015.
This article explains a few more methods of strings in Java with easy code examples to understand better.
String Class Methods in Java: Session 5
May 05, 2015.
This article will help you to learn a few more methods of strings in Java with easy code examples to understand better.
String Class Method in Java: Session 4
May 04, 2015.
This article continues with the contents of the string methods in Java that were described in previous sessions.
String Class Method in Java: Session 3
May 03, 2015.
This article continues with the contents of the string methods in Java that were described in previous sessions.
String Class Methods in Java: Session 1
May 02, 2015.
This article explains some basic and important methods in Java strings by taking easy illustrations to help in understanding and learning the concepts.
String Class Methods in Java: Session 2
May 02, 2015.
This article explains more string methods using suitable examples.
Explaining ViewState, Session and Caching in ASP.Net
Mar 26, 2015.
This article explains the 3s of ASP.NET; they are ViewState, Session and Caching.
Basic Difference Between Local Storage and Session Storage in HTML 5
Mar 21, 2015.
In this article we will learn about the basic difference between local storage and session storage in HTML 5.
Difference Between ViewData, ViewBag, TemData and Session in MVC
Mar 02, 2015.
This article shows how to pass a data controller to a view using ViewData, ViewBag, TempData and Session in MVC and the differences.
ASP.NET: Session Expiration Problem
Feb 25, 2015.
In this article I want to share some thoughts about, and my professional experience with, session expiration problems in ASP.Net.
ASP.NET MVC : Handle Session Expire Using Custom Attribute
Feb 24, 2015.
In this article you will learn how to handle a Session Expire using a Custom Attribute in ASP.NET MVC.
An Interview Session of Exception Handling: Part 1
Dec 24, 2014.
In this article you will learn about Exception Handling (try catch, finally and throw).
Difference Between Session Application and Cache
Oct 25, 2014.
This article is related to the Session, Application and Cache, So without wasting much time letās start our Topic.
OWASP Top 10 Risks #2: Broken Authentication and Session Management
Oct 16, 2014.
Developers are frequently attempting to build authentication and session management systems. But doing it correctly and securely is hard. We'll look at some of the more prevalent areas where things can go wrong and how to prevent it.
Redirect Page After Session Time Out in ASP.Net
Oct 09, 2014.
In this article we will learn how to redirect a page after the session has timed out.
View State Vs. Session State Vs. Application State
Sep 14, 2014.
This article is for beginners explaining View State Vs. Session State Vs. Application State in simple language and step-by-step.
Securing Login Page and Maintaining Single Session Per User in ASP.Net Application
Jul 23, 2014.
In this article you will learn how to secure a Login Page and maintain a single session per user in an ASP.NET application.
C# Corner Mumbai Chapter Group Update of 24th May Session on MVC and DBA
Jun 07, 2014.
This is a quick update for people who missed what happened in the C# Corner Mumbai Chapter on 24th May.
Centralized Session Handling in ASP.Net by Class
May 14, 2014.
This article explains Centralized Session Handling in ASP.NET.
Controlling Session Behavior in ASP.Net MVC
Mar 24, 2014.
This article explains the use of the SessionState attribute to disable the session state for a controller.
Customizing Debugging Session in .NET: Part II
Mar 12, 2014.
Here, we will see how to hide and expand the required properties during a debugging session.
Customizing Debugging Session in .NET: Part I
Mar 06, 2014.
This article describes a couple of ways to customize what the debugger shows us during debugging.
Difference Between Session and Caching
Feb 18, 2014.
In this article, I show you what the difference is between session and caching.
SharePoint 2010: Session Welcome Message Using jQuery
Feb 06, 2014.
This article shows how to work with Welcome Message Session Wise.
Web API With AJAX: Handle Session in Web API
Dec 16, 2013.
This article explains how to implement and maintain a session in a Web API application.
Login And Logout With Session In PHP
Nov 26, 2013.
This article explains login and logout with session in php.
InProc Session State Mode in ASP.Net
Oct 14, 2013.
This article explains the InProc Session State Mode in ASP.NET. The InProc Session State Mode is the default Session State Mode. We can host multiple websites/web applications on a single IIS. Each application runs in a separate Application Domain.
Load Balancing And Session State Configuration
Sep 10, 2013.
Load Balancing And Session State Configuration are techniques for the Application Administrator to divide or distribute the workload evenly across various servers.
How to Set Session Variables With JavaScript and AJAX
Jun 29, 2013.
Hi all, after a long phase of trials, I finally came up with a way to set SESSION variables with JavaScript and AJAX, in other words, without reloading the page.
How to Avoid Session Hijacking in Web Applications
Apr 12, 2013.
This article describes hijacking (theft) of a user Cookie from a browser. I am sure that after reading this article, everyone will test their applications at least once.
Creating Session Based Desktop Through Remote Desktop Services in Windows Server 2012: Part 2
Apr 08, 2013.
In this article you will learn about creating a Session Based Desktop through Remote Desktop Services in Windows Server 2012.
Creating Session Based Desktop Through Remote Desktop Services in Windows Server 2012-Part 1
Apr 04, 2013.
This article is about how to deploy a Session Based Desktop through Remote Desktop Services in Windows Server 2012.
Out of Process Session State - In SQL Server
Nov 13, 2012.
In this article, I am explaining, with a sample demo, storing Session State in a local or remote SQL Server.
Out-of-Process Session State (In State Server) in ASP.NET
Nov 12, 2012.
In this article, I am explaining storing a Session State in a Local or Remote NT Service with a sample demo.
Create and Use Session and Application Level Events in ASP.NET
Nov 10, 2012.
This article, will explore the Session and Application level events exposed in the Global.asax file and how we can utilize in our applications.
ASP.NET Session States in SQL Server Mode (Session State Story)
Sep 10, 2012.
Introduction to sessions states and explains the situation where a web site is hosted by multiple web servers, it becomes necessary to use something like the SQL Server feature that offers centralized storage of a session state in a Web farm. This step-by-step article demonstrates how to configure Microsoft SQL Server for ASP.NET SQL Server mode session state management.
Storing and Retrieve Value Using Session Storage in HTML5
May 31, 2012.
Learn how to utilize HTML5 Session Storage to store and retrieve data on the client-side. This tutorial explores storing values, retrieving stored data, and displaying it dynamically on a webpage using JavaScript. Complete with step-by-step instructions and code samples.
Cookie-less Session in ASP.NET
Feb 07, 2012.
In this article we will learn to use a Session even if Cookies of the userās browser is disabled
Using Session State in a Web Service
Jan 21, 2012.
A Web Service is a software program that uses XML to exchange information with other software via common internet protocols. In a simple sense, Web Services are a way for interacting with objects over the Internet.
How to Determine Session Status in MySQL
Jan 09, 2012.
Today, in this article letās learn the session status for a MySQL query.
Per Session Based - Instance Management in WCF hosted on Web App
Dec 18, 2011.
Today, in this article let dig out some theory stuff first and later we will try to implement the studied concepts i:e Per Session based Instance Management using WCF.
Enable Session in SharePoint 2010
Feb 07, 2011.
In this article I am describing how to enable Session in SharePoint 2010. It is not the same as in SharePoint 2007. It is very important when you work with session state in your custom application.
ASP.NET Session and web.config explained
Nov 12, 2010.
In this article I will explain about ASP.NET Session and web.config.
Maintaining Session from the Client Application to the Web Service
Sep 23, 2010.
This article is based on maintaining session from the client application to the Web Service.