Beispiel #1
0
        public HttpResponseObject CreateSession(params object[] parameters)
        {
            var newSession = new DataHttpSession();

            for (var index = 0; index < parameters.Length; index += 2)
            {
                newSession[parameters[index].ToString()] = parameters[index + 1];
            }

            return(SetSession(newSession));
        }
Beispiel #2
0
        private void RemoveSessionMap(DataHttpSession session)
        {
            if (session == null)
            {
                return;
            }

            lock (_sessionLock)
            {
                if (_sessionMap.ContainsKey(session.SessionKey))
                {
                    _sessionMap.Remove(session.SessionKey);
                }
            }
        }
Beispiel #3
0
 public HttpResponseObject DeleteSession(DataHttpSession session)
 {
     NeedToDeleteSession = true;
     return(SetSession(session));
 }
Beispiel #4
0
 public HttpResponseObject SetSession(DataHttpSession session)
 {
     Session = session;
     return(this);
 }