How to get the currently logged in user

To get the user ID of the user who is currently logged in, you would get it using this: System.Web.HttpContext.Current.User.Identity.Name VB.NET ’Displays the currently logged in user Response.Write(User.Identity.Name.ToString()) C# //Displays the currently logged in user Response.Write(User.Identity.Name.ToString());

How to detect the User’s culture

VB.NET Dim sLang As String sLang = Request.UserLanguages(0) Response.Write(sLang) C# string sLang ; sLang = Request.UserLanguages[0]; Response.Write (sLang);

What are the disadvantages of setting cookieless to true

Setting Cookieless=true implies some restrictions, mainly: You cannot use absolute link in your pages. You have to perform additional steps to switch between http and https pages in your application. If your customer sends a link to a friend, the URL will contain the session ID and both users could be using the same session ID at the same time.