Skip to main content


Showing posts from November, 2013

Sitecore Analytics: DMS 2.0: Persistent Cookies

Sitecore Analytics provides most accurate data as it works on server side. It has lot of tracking variables which can used for analysis. As part of Sitecore Analytics, certain cookies are set in the web client.
SC_ANALYTICS_GLOBAL_COOKIE: To identify repeat visits from a single user, Sitecore sends a persistent session cookie to the web client. The name of the persistent session cookie is SC_ANALYTICS_GLOBAL_COOKIE. The persistent session cookie expires 10 years after the last page requested from the solution by the web client.
SC_ANALYTICS_SESSION_COOKIE: To identify a sequence of HTTP requests from a single user, Sitecore sends an Engagement Analytics session cookie to the web client. The name of the session cookie is SC_ANALYTICS_SESSION_COOKIE. One of key feature of Sitecore Analytics Session Cookie is though ASP.NET expires (normally due the sessionState configuration) and creates a new session in the web page, Analytics sessio…

Sitecore: Default Pages showing the home page

Default pages in Sitecore renders home page of the site.

http://sitecore66/default http://sitecore66/default.aspx http://sitecore66/default.asmx http://sitecore66/default.ashx
Though there is no Sitecore item with name default, the above links still render the StartPath. Ideally this should redirect to 404 error page.

Sitecore DefaultResolver Pipeline checks for this default document and if the request is with the default document, then it set the current context item as the Site StartPath item and we get the StartPathfor all the above URLs.


SiteContext site = Context.Site; if ((((Context.Item == null) && (Context.Database != null)) && ((site != null) && (site.StartPath.Length != 0))) && ((args.LocalPath.Length == 0) || (args.LocalPath == "/default"))) {     Item item = args.GetItem(site.StartPath); if (item != null)     {         Tracer.Info("Using default item \"" + site.StartPath + "\&…

Sitecore 7: Admin pages