示例#1
0
        public static bool SetValue(string sessionId, string key, object value)
        {
            bool bRet = false;

            if (SessionManager.sessionsBag.ContainsKey(sessionId))
            {
                SessionContainer sessionContainer = (SessionContainer)SessionManager.sessionsBag[sessionId];

                if (!sessionContainer.NeedExpireSession(SessionManager.sessionMaxIdleTime))
                {
                    sessionContainer.SetValue(key, value);
                    bRet = true;
                }
            }

            return(bRet);
        }