1
0
qswiki/cookie.h

21 linhas
331 B
C
Em bruto Vista normal Histórico

2018-11-03 17:12:20 +01:00
#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