private static object Session(string name) { if (HttpContext.Current.Session != null) { return HttpContext.Current.Session[name]; } return null; }