The HttpContext encapsulates all the HTTP-specific information about a single HTTP request. Sohow would you solve it? Pass an array of integers to ASP.NET Web API? We are here to help. Pass the required data instead. You can now find the session object by using HttpContext.Session. The statement has been terminated. Since you can run JavaScript in the Console, and since the Console has access to the JavaScript contexts of the page, it's possible to interact with sessionStorage from the Console. Could a subterranean river or aquifer generate enough continuous momentum to power a waterwheel for the purpose of producing electricity? Has the Melford Hall manuscript poem "Whoso terms love a fire" been attributed to any poetDonne, Roe, or other? Thanks @KeithNicholas, I was about to ask if you have an Auth token / cookie, then how do you grab it without this! How to get the return value from a thread? By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. P.S. Access session value in javascript on xsl page - CodeProject To subscribe to this RSS feed, copy and paste this URL into your RSS reader. I went further in following manner: . The Manifest panel is shown by default. Content Discovery initiative April 13 update: Related questions using a Review our technical responses for the 2023 Developer Survey. HttpContext encapsulates all information about an individual HTTP request and response. Adding EV Charger (100A) in secondary panel (100A) fed off main (200A). Find centralized, trusted content and collaborate around the technologies you use most. Click a row of the table to view the value in the viewer below the table. If you look at the rendered HTML/JavaScript you'd see that there are no quotes around the username and thus JavaScript evaluates it to undefined. string sss= Session ["temp"].ToString (); (or) string sss= HttpContext.Current.Session ["temp"].ToString (); // both will work.