Sitecore Constants
I have seen a lot of projects where developers create constants or hardcode things that do not need to be hardcoded. This post will serve as an example so that developers are aware of the constant values that already come with the Sitecore binaries. I will not include all the constants since there are a lot, but I will go over the most important ones. These constants have been tested with Sitecore 9.1: Sitecore.Constants: AnonymousUserName = "Anonymous" AshxExtension = "ashx" AspxExtension = "aspx" ContentPath = "/sitecore/content" CoreDatabaseName = "core" DefaultAspNetSessionIdCookieName = "ASP.NET_SessionId" DefaultCulture = "en-US" EmailRegExp = "^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$" EveryoneRoleName = "Everyone" GuidLength = 38 MediaLibraryPath = "/sitecore/media library" MediaRequestPrefix = "-/media/" MinimalPageEditorRoleName = &q