This project is read-only.

How to get all values in a Session object

Oct 6, 2009 at 9:14 PM


How can I list out the contents of the Session object.  I didn't see a way to get and iterate using something like Session.getValueNames. 

Thanks for any help you can give.



Nov 1, 2009 at 10:08 AM

Added to trunk:



foreach (string key in request.Session.Keys)
  Console.WriteLine(key + ": " + request.Session[key]);