Search code examples
asp.netsession-cookiessession-stateweb.config-transform

cookieless session issue with the url


when setting <sessionState cookieless="true"></sessionState> in my web.config, I am getting strange url, how can I get rid of this.

here is the my url:

myhost:1578/%28S%28vzozelw3hgtqi22ndvyndzn1%29%29/default.aspx

but it should be myhost:1578/default.aspx

I not prefer using cookeless,but as I mentioned this question before

https://stackoverflow.com/questions/21626417/uplodify-session-issue-with-ff

.Only whne I use cookieless ,my second problem solved.


Solution

  • Try

    Response.ApplyAppPathModifier("default.aspx")
    

    Cookieless Session State Asp.net
    Cookieless ASP.NET