v41: Session cookie for browser-close logout
This commit is contained in:
+1
-1
@@ -294,7 +294,7 @@ func (m *OAuthManager) SetSessionCookie(w http.ResponseWriter, r *http.Request,
|
||||
HttpOnly: true,
|
||||
Secure: secure,
|
||||
SameSite: http.SameSiteLaxMode,
|
||||
MaxAge: int(sessionTTL.Seconds()),
|
||||
// No MaxAge = session cookie, deleted when browser closes
|
||||
})
|
||||
|
||||
return nil
|
||||
|
||||
+1
-1
@@ -534,7 +534,7 @@ const dashboardHTML = `<!DOCTYPE html>
|
||||
<div id="output"></div>
|
||||
</div>
|
||||
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v40</div>
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v41</div>
|
||||
|
||||
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user