/// <summary>
 /// Helper method for getting a Redis key name from a Session Id
 /// </summary>
 /// <param name="context">The current HttpContext</param>
 /// <param name="sessId">The value of the Session ID cookie from the web request</param>
 /// <returns>A string which is the address of the Session in Redis</returns>
 public static string RedisHashIdFromSessionId(HttpContextBase context, string sessId)
 {
     if (RedisSessionConfig.RedisKeyFromSessionIdDel == null)
     {
         return(sessId);
     }
     else
     {
         return(RedisSessionConfig.RedisKeyFromSessionIdDel(context, sessId));
     }
 }
 /// <summary>
 /// Helper method for getting a Redis key name from a Session Id
 /// </summary>
 /// <param name="context">The current HttpContext</param>
 /// <param name="sessId">The value of the Session ID cookie from the web request</param>
 /// <returns>A string which is the address of the Session in Redis</returns>
 public static string RedisHashIdFromSessionId(HttpContextBase context, string sessId)
 {
     return((RedisSessionConfig.RedisKeyFromSessionIdDel != null) ? RedisSessionConfig.RedisKeyFromSessionIdDel(context, sessId) : sessId);
 }