Last post Sep 17, 2014 02:42 PM by dassie
Sep 16, 2014 03:15 PM|dassie|LINK
I have an app that uses cookieless sessions. Ergo when I create links I use ApplyAppPathModifier like so:
This works correctly in debug mode and all links in my website have the session id embedded in them. But when I publish to IIS none of the links will have the session ids.
I double checked my session state settings in IIS and they're set to "Use URI". Other than that I don't know what else I can change.
Has anyone run into this issue before?
Sep 17, 2014 07:08 AM|Zhi Lv - MSFT|LINK
Welcome to ASP.NET forums.
According to your description, the issue is not related to the session state "Use URI". Actually, to enable cookieless sessions, add
cookieless="true", or cookieless="UseUri" (both options have the same meaning) inside
sessionState tag in web.config file. I suppose the issue is related to the URL. So, please check your code to see if there is anything breaking.
For more information, please refer to the following articles:
Cookieless Session State Explained:
Sep 17, 2014 02:42 PM|dassie|LINK
Hi Dillion,I actually do have all those settings in my web.config. Everything works correctly when I'm debugging in VS via IIS express. But when I publish to IIS 6, the session ids don't appear in the web links.
<sessionState cookieless="true" regenerateExpiredSessionId="true" timeout="480" mode="InProc" customProvider="DefaultSessionProvider">
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />