How to remove ASP.NET session id from my url?

How to remove id from my url?

In this example, the URL I need is just index.aspxhow to remove (S(w0uz0245gtucb3am0k5w5g55))?

http://www.example.com/(S (w0uz0245gtucb3am0k5w5g55)) / index.aspx

+5
source share
2 answers

Your web server is rewriting your URLs to enable session state because you configured your site to not use cookies.

If you look at the file of your site web.config, you will probably find this line:

<sessionState cookieless="true" />

If you change the value to false, if you solve your problem (or just completely delete the line - the default value is false)

.

+8

iFrame. URL.

-2

All Articles