Question

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.

Was it helpful?

Solution

Try

Response.ApplyAppPathModifier("default.aspx")

Cookieless Session State Asp.net
Cookieless ASP.NET

OTHER TIPS

Use

string urlConverted = Response.ApplyAppPathModifier("default.aspx");
buttonId.NavigateUrl = urlConverted;

refer

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top