Exemplo n.º 1
0
        public override IPlatSessionData InitSession(string colUid, params string[] colArgs)
        {
            var session = new WyxSessionInfo();

            PlatSessionUtil.InitSession(session, WyxSessionInfo.COLUid, WyxSessionInfo.ALLKeys);
            session.FromCollection(HttpContext.Current.Request.QueryString, false, WyxSessionInfo.ALLKeys);
            return(session);
        }
Exemplo n.º 2
0
        public override IPlatSessionData InitSession(string colUid, params string[] colArgs)
        {
            var session = new WanwanSessionInfo();

            PlatSessionUtil.InitSession(session, WanwanSessionInfo.COLUid, WanwanSessionInfo.ALLKeys);
            session.FromCollection(HttpContext.Current.Request.QueryString, false, WanwanSessionInfo.ALLKeys);
            if (string.IsNullOrEmpty(session.Uid))
            {
                if (null != HttpContext.Current.Session)
                {
                    var obj = HttpContext.Current.Session[WanwanSessionInfo.COLUid];
                    if (null != obj)
                    {
                        session.Uid = obj.ToString();
                        HttpContext.Current.Session[WanwanSessionInfo.COLUid] = null;
                    }
                }
            }
            return(session);
        }