Viewing Session Variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I view the defined Session Variables in the Dotnet environment? I
found the session object and it shows me the count of the number of items,
but I don't see how to see the names and values of the items.
 
Thank you for attempting to answer the question, but that wasn't the question
-- I already knew how to store and retrieve the session values. What I wanted
to be able to do is to look in a debug window, like the locals window, and
find the object, such as me.session and look at all of the session variables
that have been defined and what their values are. I'd also like to be able
access this 'collection' via code. Do you know how to do this?

Thanks in advance for your help.
Ernest

Vishnu-Chivukula said:
Hi Forman,
You can store any object in session..

Use this for assigning values to the session variable....
Session["UserName"] = "My Name"
To retrieve values
name = Session["UserName"].ToString()

Hope i got your question right...

Happy Coding




Ernest Forman said:
How can I view the defined Session Variables in the Dotnet environment? I
found the session object and it shows me the count of the number of items,
but I don't see how to see the names and values of the items.
 
Back
Top