Crunch Mode Blog - A State of Mind by Developers at D2Soft Technologies

Like us on Facebook

Random String Appears in ASP.NET Site Url

We just had an issue after putting a site in production: some ramdom characters would show up in the URL, like "".

The weird thing is that this would happen only in Internet Explorer (11).  After some research, we figured this was a SessionState ID.  We also noticed that this would happen when using our login form (authentication mode="Forms").  As this requires a cookie to complete the login, the browser would generate this URL with a session information.

To solve this, we found that it is required to set the cookieless parameter to "UseCookie" in the Web.config, like this:

<authentication mode="Forms">
        <forms name="Login" timeout="10080" loginUrl="Login.aspx" defaultUrl="~/" cookieless="UseCookies"/>