Avatar of evo_x
evo_x
Flag for Romania asked on

ASP.NET 4, Cookies problem

ASP.NETWeb DevelopmentMicrosoft IIS Web Server

Avatar of undefined
Last Comment
evo_x

8/22/2022 - Mon
Rouchie

Because when you navigate through your site from http://www.mobivel.com that's what the links on the page are showing as the destination URL's
evo_x

ASKER
but I have set the cookies to files instead of URL from web.config
Rouchie

Have you just uploaded a new version, because after clearing my browser cache and loading up your site again, the links are all working fine for me?

The only other issue (from an SEO perspective) is that your list of car manufacturers using a linkbutton that posts back, so the URL (for Acura) is
   javascript:__doPostBack('ctl00$Main$CategoryBrowser$TopCategoryList$ctl00$NestedSubCategoryRepeater$ctl01$SubCategoryButton','')

when it should really be just:

http://www.mobivel.com/Search.aspx?c=111

which Google will natively follow.  For ASP.NET 4.0, you should be using Routes to create really friendly SEO URLS like this:

http://www.mobivel.com/cars/acura

See here for the tutorial:
http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx
Your help has saved me hundreds of hours of internet surfing.
fblack61
evo_x

ASKER
No, I have not uploaded a newer version, it is the same.
I already use routes for Ad pages
Thanks for the tips, I have used that tutorial when I have implemented the routes :)
Rouchie

If the pages are now being referenced correctly in the URL's (which it appears they are), then it will take Google (usually) around a couple of weeks to re-index your site and correct itself.
evo_x

ASKER
I have made this change 2 months ago, and I have added new pages to the website which were still indexed by google with that cookie in the URL :(
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Rouchie

In addition to checking your site using its spidering method, it will also check additional links that it has in its database to see whether they're still active.  Because your site still accepts the cookie-style format of URL, then its including them in addition to the other format.
I'm not entirely sure how to stop ASP.NET accepting the previous (cookie) format without seeing your web.config file.
evo_x

ASKER
This is my web.config file
evo_x

ASKER
sorry, I forgot to attach it.
webconfig.zip
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Rouchie

cookieless="UseCookies" in the web.config file was what I was hoping to see.  I notice however that your site is still processing the original URL containing the cookie data.  Is it possible for you to restart IIS or the web site?  That would kill the sessions which are being resumed.

Also, try setting regenerateExpiredSessionId="False" in the anonymousIdentification part of web.config.  That should stop the previous URL's working when the sessions have been removed from the server
evo_x

ASKER
this web.config file is 3 months old, and the server was restarted since then, almost every 2-3 days.
ASKER CERTIFIED SOLUTION
Rouchie

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
evo_x

ASKER
ok, thanks ! I hope it will work :)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.