This works for both MVC and web forms.
Create a text file called for example “test.aspx”. Edit to have content shown below. Copy the file to root folder of your web site then browse : http://yoursite.com/test.aspx
<%@ Language=C# %> <html> <script runat="server" language="C#"> void MyButton_OnClick(Object sender, EventArgs e) { lblSessionId.Text = "Session ID : " + Session.SessionID + " @ " + DateTime.Now.ToLongTimeString(); lblThreadCultureName.Text = "Thread culture name : " + System.Threading.Thread.CurrentThread.CurrentCulture.DisplayName; lblThreadUICultureName.Text = "Thread UI culture name : " + System.Threading.Thread.CurrentThread.CurrentUICulture.DisplayName; } </script> <body> <form id="MyForm" runat="server"> <asp:button id="MyButton" text="Click here to display session ID" OnClick="MyButton_OnClick" runat="server"></asp:button> <asp:label id="lblSessionId" runat="server"></asp:label><br/> <asp:label id="lblThreadCultureName" runat="server"></asp:label><br/> <asp:label id="lblThreadUICultureName" runat="server"></asp:label><br/> </form> </body> </html>