Category Archives: Sitecore

Sitecore Scheduled Task – Schedule time format and other quirks

The Sitecore task runner, usually called Scheduled Tasks, is a simple way of executing code with intervals. You configure scheduled tasks in Sitecore, at /sitecore/system/Tasks/Schedules: The quirkiest configuration setting is the “Schedule” field, which is a pipe separated string determining when … Continue reading

Posted in c#, Sitecore, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | 1 Comment

Sitecore and Feature Flags using LaunchDarkly

Feature flags are a software development best practice of gating functionality. Functionality can be deployed “off”, then turned on via the feature flag, separate from deployment. With feature flags, you can manage the entire lifecycle of a feature. Launchdarkly.com In … Continue reading

Posted in c#, General .NET, Sitecore, Sitecore 8 | Tagged , , , , | Leave a comment

Sitecore Advanced Configuration in .config files

Sitecore allows you to create configuration sections in /configuration/sitecore/ that consists of hierarchies of configurations including lists, and it will even help you serialize the configuration to object instances. Observe the following real life example of a configuration I created to … Continue reading

Posted in .net, c#, General .NET, Sitecore, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , , | Leave a comment

Sitecore SVG files

In Sitecore 8.1, there is a tiny but annoying glitch in the matrix, where SVG files are not allowed in the Media Library. But do not worry, the fix is easy. Go to your /App_Config/Sitecore.config, find the /sitecore/mediaLibrary/mediaTypes/mediaType section, and add … Continue reading

Posted in Sitecore, Sitecore 8 | Tagged , | 1 Comment

Sitecore sublayout caching vary by cookie

In Sitecore you can control the caching of your sublayouts in many different ways. Checking the “Cacheable” box allows you you vary the cache by data (data source), device, login (anonymous users have a different cached version from named users), … Continue reading

Posted in c#, General .NET, Sitecore, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | 1 Comment

Sitecore Virtual Users – authenticate users from external systems

One of the very old Sitecore features popped up yesterday. My team and I are working on moving our 550.000+ users from the .NET Membership Provider to an external system, possibly .NET Identity. .NET Identity will authorize the users, but we … Continue reading

Posted in c#, Sitecore, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8 | Tagged , , , | 6 Comments

Sitecore 8 and Tracker.Current.Session.Identify – Overriding expired contact session lock for contact id

The new Sitecore 8 Experience Profile is a vital part, yes almost a cornerstone of the new xDB concept. In xDB, you store information about the current user, anonymous or named, as a Contact in the Experience Profile (stored in … Continue reading

Posted in c#, Sitecore, Sitecore 8 | Tagged , , , , | 5 Comments

Sitecore 8 and Engagement Plans

With the introduction of the xDB in Sitecore 7.5, Sitecore also changed the analytics API. The VisitorManager have been replaced by the Tracker. The Tracker is one of the base API’s for Sitecore the new Sitecore Experience Platform (the new … Continue reading

Posted in c#, General .NET, Sitecore, Sitecore 8 | Tagged , , , , , | 1 Comment

Improve Sitecore Membership provider performance 2-20 times

Sitecore Membership performance can be increased dramatically by changing stored procedures and create new indexes. Try this before you write your own membership provider. Continue reading

Posted in Sitecore, Sitecore 6, Sitecore 7 | Tagged , , , | 6 Comments

Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode

When switching the sessionState mode of your web project from InProc to SQLServer you might encounter this error: Exception: System.Web.HttpException Message: Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode, ASP.NET will serialize the session state objects, and … Continue reading

Posted in c#, General .NET, Sitecore | Tagged , , , , , , | 1 Comment