Emrin

Results 2 issues of Emrin

I tested this in middleware and any invocation of response.cookies.set() on a NextResponse *after* saving the session with await session.save() will not set the new session as a cookie.

need simple reproduction