blob: 19082af726adf2b430225899e0c9d0c2ed141795 (
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
26
27
28
29
30
31
|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace Janrain.OpenId.Session
{
public class SimpleSessionState : ISessionState
{
private static SimpleSessionState local_instance = new SimpleSessionState();
private Hashtable hashtable = new Hashtable();
public SimpleSessionState()
{
}
public static SimpleSessionState GetInstance()
{
return local_instance;
}
public int Count { get { return hashtable.Count; } }
public object this[int index] { get { return hashtable[index]; } set { hashtable[index] = value; } }
public object this[string index] { get { return hashtable[index]; } set { hashtable[index] = value; } }
public void Add(string name, object value) { hashtable.Add(name, value); }
public void Clear() { hashtable.Clear(); }
public void Remove(string name) { hashtable.Remove(name); }
}
}
|