mirror of
https://github.com/c0re100/qBittorrent-Enhanced-Edition.git
synced 2025-01-09 04:18:39 +08:00
🐛 webui: Fix bug of cookie cannot set expiration (#622)
This commit is contained in:
parent
5c2e555727
commit
139035a21e
@ -741,6 +741,7 @@ void WebApplication::sessionStart()
|
||||
cookie.setHttpOnly(true);
|
||||
cookie.setSecure(m_isSecureCookieEnabled && m_isHttpsEnabled);
|
||||
cookie.setPath(u"/"_s);
|
||||
cookie.setExpirationDate(QDateTime::currentDateTime().addSecs(m_sessionTimeout));
|
||||
if (m_isCSRFProtectionEnabled)
|
||||
cookie.setSameSitePolicy(QNetworkCookie::SameSite::Strict);
|
||||
else if (cookie.isSecure())
|
||||
|
Loading…
Reference in New Issue
Block a user