title: IIS 5.1 session
body: <p>I am hosting my website in IIS 5.1.
  When i am accessing the site using localhost/xwy/Login.aspx
  after entering login credential i am able to move to next page (main.aspx) of the site.
  But , when I use xyz.com/xwy/login.aspx where (xyz.com is the machine name) and enter login credential  , then i am redirected back to login.aspx.After, checking Trace.axd I found in page main.aspx Session variables are not instantited i.e under Session State section no session variable is present.<img src="https://i.stack.imgur.com/YXZAr.png" alt="enter image description here"></p>
  
  <p>I am using ASP.NET 4.0 for website.
  How to solve this problem?</p>