public static ActionResult InitCookieValue()

in installer/CustomAction/CouchIniAction.cs [14:31]


        public static ActionResult InitCookieValue(Session session)
        {
            try
            {
                byte[] buffer = new byte[16];
                RandomNumberGenerator rng = RNGCryptoServiceProvider.Create();
                rng.GetBytes(buffer);
                session["COOKIEVALUE"] = BitConverter.ToString(buffer).Replace("-", String.Empty);
            }
            catch (Exception ex)
            {
                session.Log("ERROR in custom action InitCookieValue {0}",
                      ex.ToString());
                return ActionResult.Failure;
            }

            return ActionResult.Success;
        }