I'm using session state variables in my webpart on SharePoint Foundation 2010. It works fine until a user accesses the web application using the FQDN.
http://myapp = works fine
http://myapp.company.com = error
It gives Session State errors. When I try to edit the page and add the webpart in the
myapp.company.com it gives me the below error, but the
/myapp page works properly.
I've made the changes to the web.config on every server on the farm and session state DOES work so long as the FQDN is not used.
Error: Unexpected System.Web.HttpException: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the