Based on this code sample List all active ASP.NET Sessions from StackOverflow, I wrote the following script, which uses reflection to access and modify Session values, from current ASP.NET users:
This code was created using the C# REPL started from a Web REPL:
How it works?
First we set a Session Value (in a separate browser window):
Then running the script, note how (from a different thread in the Cassini server) we have access to the a_Key session value (top line in the Log Viewer)
What is more interesting, is that we can change the 'Session value' from this script:
Which means that If we go back to the Web REPL (and comment the Session[“a_Key”] setter), we will see it's changed value: