This token is applied for 70% of all urls on pages, even for images. It looks like Forms Auth token for cookieless browsers. But I disabled cookieless in web.config(set it to cookies only). Also it applied for all browsers(with enabled cookies), and even
when user is not signed in.
How to solve this issue? Any ideas? Think, I missed something when upgraded to new mvc.
I use couple RenderAction commands in master page, to render some general partial views. and controller methods for these parts, I marked with OututCache attribute. Removed this attribute - and all urls now looks good.
barbar1an
0 Points
6 Posts
"F" tokens in urls?
Dec 25, 2012 09:56 PM|LINK
Previously updated my mvc application from mvc2 to mvc 3 and last week to mvc 4. Also moved it from IIS6 server to IIS7 server.
Now many urls, generated by mvc routing, have token in url. Like this:
This token is applied for 70% of all urls on pages, even for images. It looks like Forms Auth token for cookieless browsers. But I disabled cookieless in web.config(set it to cookies only). Also it applied for all browsers(with enabled cookies), and even when user is not signed in.
How to solve this issue? Any ideas? Think, I missed something when upgraded to new mvc.
Gaspard
Contributor
2066 Points
416 Posts
Re: "F" tokens in urls?
Dec 25, 2012 10:34 PM|LINK
Maybe this thread can help
http://stackoverflow.com/questions/12228704/ie10-injects-token-into-net-mvc-links
Regards
barbar1an
0 Points
6 Posts
Re: "F" tokens in urls?
Dec 28, 2012 08:05 PM|LINK
unfortunatelly, it doesn't helped me
ignatandrei
All-Star
134511 Points
21576 Posts
Moderator
MVP
Re: "F" tokens in urls?
Dec 28, 2012 08:06 PM|LINK
please check again your cookie setting in root web.config.
barbar1an
0 Points
6 Posts
Re: "F" tokens in urls?
Dec 28, 2012 08:31 PM|LINK
it is from my site web.config
<sessionState cookieless="false" /> <authentication mode="Forms"> <forms loginUrl="~/LogOn" timeout="2880" cookieless="UseCookies" /> </authentication>ignatandrei
All-Star
134511 Points
21576 Posts
Moderator
MVP
Re: "F" tokens in urls?
Dec 28, 2012 08:44 PM|LINK
please put also
mode="inproc"
barbar1an
0 Points
6 Posts
Re: "F" tokens in urls?
Dec 28, 2012 09:00 PM|LINK
Looks like I found issue.
I use couple RenderAction commands in master page, to render some general partial views. and controller methods for these parts, I marked with OututCache attribute. Removed this attribute - and all urls now looks good.
ignatandrei
All-Star
134511 Points
21576 Posts
Moderator
MVP
Re: "F" tokens in urls?
Dec 28, 2012 09:01 PM|LINK
What was specific attribute, please? I have used myself OutputCache-* but never had this problem.
barbar1an
0 Points
6 Posts
Re: "F" tokens in urls?
Dec 28, 2012 09:08 PM|LINK
It was standart System.Web.Mvc.OutputCacheAttribute.