Let's make (git) history!

Cette révision appartient à :
2018-11-03 17:12:20 +01:00
révision 3bfebfe8a8
212 fichiers modifiés avec 11970 ajouts et 0 suppressions

20
cookie.h Fichier normal
Voir le fichier

@@ -0,0 +1,20 @@
#ifndef COOKIE_H
#define COOKIE_H
#include <string>
class Cookie
{
public:
std::string key;
std::string value;
int expires;
Cookie(const std::string &key, const std::string &val, int expireSeconds = 0);
std::string createHeaderValue() const
{
return key + "=" + value + "; path=/; HttpOnly";
}
};
#endif // COOKIE_H