Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2009, 06:46 AM
Registered User
 
Join Date: Mar 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Session ID problem

Hello everybody!! I meat with a problem of indexing site by Google. It is a matter of common knowledge that Googlebot doesn't use any cookies thus when visiting the the site it will get not the short url like we got used to see in our browsers (with cookies turned on) but with the long session ID (i.e. http://ideal-k.com.ua/(X(1)A(39SR9jT...ookieSupport=1) . And each time the Googlebot visits the site it will get a new session ID. The biggest problem such url leads is that google identifies these urls like DIFFERENT pages and can reduce the page rank because of "contents duplicating". I tried to set the page directive (EnableSessionState = "False") for the default.aspx and tested on the cookieless browser - same reaction as before - the session ID was present in url. The master page doesn't have such directive compile directive at all. That led me to the last chance - to disable Session state in web.config: <sessionState mode="Off"/> . Imagine how big was my surprise when I also didn' see any change of the ASP.Net: session ID still was present. Does anybody know where is my mistake?
 
Old March 23rd, 2009, 05:33 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

The reason you can't get rid of this "Session ID" is because what you are seeing here is not a SessionID at all.

Rather, it is an identifier used for anonymous identification. You can tell by the X(1)A part at the beginning. Session IDs start with X(1)S.

You have this because you have set the cookieless attribute of <anonymousIdentification> to either "AutoDetect" or "UseUri".

<anonymousIdentificationcookieless="AutoDetect"enabled="true"/>

Set it to "UseCookies" to get rid of the X(1)A identifier in the querystring. Better yet, if you don't need to have anonymous identification, disable it altogether.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}

Last edited by Lee Dumond; March 23rd, 2009 at 06:16 PM..
The Following User Says Thank You to Lee Dumond For This Useful Post:
AntheX (March 24th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
what is session id and when does it expire nidhimittal PHP How-To 3 June 29th, 2006 05:17 AM
what is session id and when does it expire nidhimittal Beginning PHP 0 June 26th, 2006 07:20 AM
session id rbojja J2EE 2 February 13th, 2006 05:48 AM
session id rbojja J2EE 1 February 11th, 2006 01:22 PM
Session Id mixing jejedp VS.NET 2002/2003 0 January 4th, 2006 07:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.