|
@@ -123,18 +123,18 @@ def gc():
|
123
|
123
|
destroy_session(token)
|
124
|
124
|
|
125
|
125
|
|
126
|
|
-def set_value(token, key, value):
|
|
126
|
+def set_session_value(token, key, value):
|
127
|
127
|
session = restore_session(token)
|
128
|
128
|
session[key] = value
|
129
|
129
|
save_session(token, session)
|
130
|
130
|
|
131
|
131
|
|
132
|
|
-def get_value(token, key):
|
|
132
|
+def get_session_value(token, key):
|
133
|
133
|
session = restore_session(token)
|
134
|
134
|
return session[key]
|
135
|
135
|
|
136
|
136
|
|
137
|
|
-def del_value(token, key):
|
|
137
|
+def del_session_value(token, key):
|
138
|
138
|
session = restore_session(token)
|
139
|
139
|
if key in session:
|
140
|
140
|
del(session[key])
|