You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If session.Start(nil, w, r) is called twice in the same handler func, the second one will generate a new session id because of the cookie store returns false if the cookie does not exist. It breaks the cookie signature validation because the first session id is overwritten by second one.
All other store backends like redis store or in-memory store do not have such problem
The text was updated successfully, but these errors were encountered:
build and run, then visit http://localhost:8080/foo and it will show that the two calls of inner() return different sessionID, which breaks the expectation that sessionID should be same in the lifetime of a single request.
If
session.Start(nil, w, r)
is called twice in the same handler func, the second one will generate a new session id because of the cookie store returns false if the cookie does not exist. It breaks the cookie signature validation because the first session id is overwritten by second one.All other store backends like redis store or in-memory store do not have such problem
The text was updated successfully, but these errors were encountered: