bug-fixesdebuggingnextjs
Our App Just Wouldn't Let Go
The solution was to delete the cookie from within the server action. Whenever cookies() is modified within a server action, Next itself emit the deletion Set-Cookie on the action's response, which the browser will definitely receive this time.
Victor Ohachor · Read