Skip to content

Commit

Permalink
Add the httpOnly flag to TFSESSION cookie.
Browse files Browse the repository at this point in the history
treefrogframework committed Oct 4, 2015
1 parent d53a4ec commit 177935f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tactioncontext.cpp
Original file line number Diff line number Diff line change
@@ -180,7 +180,7 @@ void TActionContext::execute(THttpRequest &request, const QByteArray &socketUuid

// Sets the path in the session cookie
QString cookiePath = Tf::appSettings()->value(Tf::SessionCookiePath).toString();
currController->addCookie(TSession::sessionName(), currController->session().id(), expire, cookiePath);
currController->addCookie(TSession::sessionName(), currController->session().id(), expire, cookiePath, QString(), false, true);
}
}

0 comments on commit 177935f

Please sign in to comment.