@@ -12,6 +12,7 @@ import (
1212 "github.com/oauth2-proxy/oauth2-proxy/pkg/apis/sessions"
1313 "github.com/oauth2-proxy/oauth2-proxy/pkg/cookies"
1414 "github.com/oauth2-proxy/oauth2-proxy/pkg/encryption"
15+ "github.com/oauth2-proxy/oauth2-proxy/pkg/logger"
1516 "github.com/oauth2-proxy/oauth2-proxy/pkg/sessions/utils"
1617)
1718
@@ -129,6 +130,7 @@ func NewCookieSessionStore(opts *options.SessionOptions, cookieOpts *options.Coo
129130// it into a slice of cookies which fit within the 4kb cookie limit indexing
130131// the cookies from 0
131132func splitCookie(c *http.Cookie) []*http.Cookie {
133+ logger.Printf("WARNING: Multiple cookies are required for this session as it exceeds the 4kb cookie limit. Please use server side session storage (eg. Redis) instead.")
132134 if len(c.Value) < maxCookieLength {
133135 return []*http.Cookie{c}
134136 }