using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Http;
using NewLife.Log;
namespace COMCMS.Common
{
public class SessionHelper
{
#region 获取Session
///
/// 获取Session
///
///
///
public static object GetSession(string strName)
{
byte[] result;
try
{
MyHttpContext.Current.Session.TryGetValue(strName, out result);
if (result == null || result.Length <= 0)
return "";
object strResult = ByteConvertHelper.Bytes2Object