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
I don't understand, what's the use case of that code snippet? Share with me the final goal, what you want to achieve, so I can come back with a better solution than re-creating a session twice in the same request-response lifecycle.
Why session := sessions.Get(ctx) and then session = sess.Start(ctx) (session is unused), while this handler already wrapped with a session middeware on main function app.Use(sess.Handler())?
Fixed @mblaschke :) Thanks for the link/reminder though. Update to @master: go get github.com/kataras/iris/v12@master and run go mod tidy -compat=1.18.
Describe the bug
When trying to regenerate a session (destroy & start again in same request) it isn't working anymore with iris v12.2.0-beta1
To Reproduce
iris v12.1.8 response headers for
/login
:iris v12.2.0-beta1 response headers for
/login
:iris @master response headers for
/login
(also wrong order?):Expected behavior
Session is cleared (also invalidated in request cookies?) and a new session is created
and only one
Set-Cookie
header is sentDesktop (please complete the following information):
iris.Version
Additional context
or implement a way to recreate the session
The text was updated successfully, but these errors were encountered: