summaryrefslogtreecommitdiff
path: root/icespider/common/session.ice
diff options
context:
space:
mode:
Diffstat (limited to 'icespider/common/session.ice')
-rw-r--r--icespider/common/session.ice27
1 files changed, 27 insertions, 0 deletions
diff --git a/icespider/common/session.ice b/icespider/common/session.ice
new file mode 100644
index 0000000..4947f9f
--- /dev/null
+++ b/icespider/common/session.ice
@@ -0,0 +1,27 @@
+#ifndef ICESPIDER_SESSION_ICE
+#define ICESPIDER_SESSION_ICE
+
+module IceSpider {
+ dictionary<string, string> Variables;
+
+ exception SessionError {
+ string what;
+ };
+
+ class Session {
+ string id;
+ long lastUsed;
+ short duration;
+ Variables variables;
+ };
+
+ interface SessionManager {
+ Session createSession() throws SessionError;
+ Session getSession(string id) throws SessionError;
+ void updateSession(Session session) throws SessionError;
+ void destroySession(string id) throws SessionError;
+ };
+};
+
+#endif
+