Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP.NET 4, Cookies problem

Posted on 2010-11-07
13
364 Views
Last Modified: 2012-05-10
0
Comment
Question by:evo_x
  • 7
  • 6
13 Comments
 
LVL 25

Expert Comment

by:Rouchie
ID: 34086030
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
0
 
LVL 2

Author Comment

by:evo_x
ID: 34086086
but I have set the cookies to files instead of URL from web.config
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 34086206
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
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 2

Author Comment

by:evo_x
ID: 34086280
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 :)
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 34091001
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.
0
 
LVL 2

Author Comment

by:evo_x
ID: 34091936
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 :(
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 34091970
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.
0
 
LVL 2

Author Comment

by:evo_x
ID: 34093117
This is my web.config file
0
 
LVL 2

Author Comment

by:evo_x
ID: 34093128
sorry, I forgot to attach it.
webconfig.zip
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 34093648
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
0
 
LVL 2

Author Comment

by:evo_x
ID: 34093668
this web.config file is 3 months old, and the server was restarted since then, almost every 2-3 days.
0
 
LVL 25

Accepted Solution

by:
Rouchie earned 500 total points
ID: 34093853
Okay then regenerateExpiredSessionId="False"  is what you'll need.
0
 
LVL 2

Author Comment

by:evo_x
ID: 34095456
ok, thanks ! I hope it will work :)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question