79074587

Date: 2024-10-10 13:23:56
Score: 0.5
Natty:
Report link

Why isn't logout working in my NextJS app on Asure Static Webapps?

The reason this isn’t working in the Next.js app on Azure Static Web Apps is that when I click the logout button, the app session cookie is regenerated, causing the user to be logged in again.

I manually deleted the appSession cookie using the Application option in the browser tools. I selected Cookies -> App URL -> appSession -> Clear All Cookies, and then logged out.

enter image description here

The user is successfully logged out, as shown below.

enter image description here

Refer my GitHub repository for complete code.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why isn't
  • Low reputation (0.5):
Posted by: Aslesha Kantamsetti