1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00
sdrangel/httpserver/httpsessionssettings.h

41 lines
681 B
C
Raw Normal View History

/*
* httpsessionssettings.h
*
* Created on: Nov 13, 2017
* Author: f4exb
*/
#ifndef HTTPSERVER_HTTPSESSIONSSETTINGS_H_
#define HTTPSERVER_HTTPSESSIONSSETTINGS_H_
namespace qtwebapp {
struct HttpSessionsSettings
{
int expirationTime;
QString cookieName;
QString cookiePath;
QString cookieComment;
QString cookieDomain;
HttpSessionsSettings() {
resetToDefaults();
}
void resetToDefaults()
{
expirationTime = 3600000;
cookieName = "sessionid";
cookiePath = "";
cookieComment = "";
cookieDomain = "";
}
};
} // end of namespace
#endif /* HTTPSERVER_HTTPSESSIONSSETTINGS_H_ */