mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-08-22 05:56:33 -04:00
41 lines
681 B
C++
41 lines
681 B
C++
/*
|
|
* 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_ */
|