summaryrefslogtreecommitdiff
path: root/icespider/common/session.ice
blob: 4947f9f4e6fa5c16eed9f78416bd25c7ed2c7728 (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
#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