Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomCookieStore ¶
type CustomCookieStore struct {
*sessions.CookieStore
}
func NewCustomCookieStore ¶
func NewCustomCookieStore(keyPairs ...[]byte) *CustomCookieStore
Set secureCookie maxLength to an arbitrary (20x4kb) high value since we are no longer limited
func (*CustomCookieStore) New ¶
In contrast to default implementation, the session values can be partitioned into multiple cookies. The original cookie is split/joined in its encoded form
func (*CustomCookieStore) Save ¶
func (s *CustomCookieStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
If the cookie length is > maxCookieLength, its value is split into multiple cookies fitting into the maxCookieLength limit. The resulting section cookies get their index appended to the name.
Click to show internal directories.
Click to hide internal directories.