|
@@ -197,10 +197,22 @@ namespace robotics {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ class cookie_id {
|
|
|
+ public:
|
|
|
+ static std::string get_id() {
|
|
|
+ static std::string g_cookie_id;
|
|
|
+ if (g_cookie_id.empty()) {
|
|
|
+ g_cookie_id = v3::utils::uuid();
|
|
|
+ }
|
|
|
+ return g_cookie_id;
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
class cookie {
|
|
|
public:
|
|
|
cookie() {
|
|
|
- name = "SessionId";
|
|
|
+ //name = "SessionId";
|
|
|
+ name = cookie_id::get_id();
|
|
|
value = v3::utils::base64_encode(v3::utils::uuid());
|
|
|
path = "path=/";
|
|
|
time = 30 * 60 * 1000;
|