Browse Source

Set HttpOnly attribute to SID cookie

adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
e9bd75f4e1
  1. 1
      src/webui/abstractwebapplication.cpp

1
src/webui/abstractwebapplication.cpp

@ -354,6 +354,7 @@ bool AbstractWebApplication::sessionStart()
sessions_[session_->id] = session_; sessions_[session_->id] = session_;
QNetworkCookie cookie(C_SID, session_->id.toUtf8()); QNetworkCookie cookie(C_SID, session_->id.toUtf8());
cookie.setHttpOnly(true);
cookie.setPath(QLatin1String("/")); cookie.setPath(QLatin1String("/"));
header(Http::HEADER_SET_COOKIE, cookie.toRawForm()); header(Http::HEADER_SET_COOKIE, cookie.toRawForm());

Loading…
Cancel
Save