List of Session Variables With Session Name and Session Value in ASP.NET Application

Introduction

This article shows that how to Display all session values which are active in our application using c# asp.net.

using Session.Contents property of session, as below:



To check I have implement this code in my application.

Lets see result of active session list after login in my application i have set session values and get them.

I have set following 5 session variables as below



And session list returned by session.contents is:



Here is list of active session values.

Ebook Download
View all
Learn
View all