1) An aspx page must be setup to allow session to be used.
2) You should do a null value check on the session variable before you try to use it, becuase of possible timeout and the session is gone.
3) ASP.NET issues can be addressed at the ASP.NET forums.
https://forums.asp.net/