Skip to content

Instantly share code, notes, and snippets.

@soen
Last active July 5, 2016 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soen/c1edf1417ef5a4c178c6e6a0055ecba6 to your computer and use it in GitHub Desktop.
Save soen/c1edf1417ef5a4c178c6e6a0055ecba6 to your computer and use it in GitHub Desktop.
// Decompiled with JetBrains decompiler
// Type: Sitecore.Sites.SiteContext
// Assembly: Sitecore.Kernel, Version=8.1.0.0, Culture=neutral, PublicKeyToken=null
//
// NOTE: This is not the complete implementation, only fractions of the important parts related
// to getting cookie by key from the site-context.
//
namespace Sitecore.Sites
{
[DebuggerDisplay("{Name}")]
public class SiteContext
{
internal static string GetCookieKey(string siteName, string name)
{
Sitecore.Diagnostics.Assert.ArgumentNotNull((object) siteName, "siteName");
Sitecore.Diagnostics.Assert.ArgumentNotNull((object) name, "name");
return (siteName + "#" + name).ToLowerInvariant();
}
// code omitted...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment