summaryrefslogtreecommitdiffstats
path: root/source/Janrain.OpenId/Session/SystemHttpSessionState.cs
blob: af9942b8940532cb2f25127c3e1e45a12e7e4f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.SessionState;

namespace Janrain.OpenId.Session
{
    public class SystemHttpSessionState : ISessionState
    {
        private HttpSessionState sessionstate;

        public SystemHttpSessionState(HttpSessionState value)
        {
            sessionstate = value;
        }

        public int Count { get { return sessionstate.Count; } }
        public object this[int index] { get { return sessionstate[index]; } set { sessionstate[index] = value; } }
        public object this[string index] { get { return sessionstate[index]; } set { sessionstate[index] = value; } }
        public void Add(string name, object value) { sessionstate.Add(name, value); }
        public void Clear() { sessionstate.Clear(); }
        public void Remove(string name) { sessionstate.Remove(name); }
    }
}