---
title: "Discussion on \"Auth0-NextJs SDK: Learn to redirect users to the same page post-logout using cookies\" | Hashnode"
description: "Discussion on \"Auth0-NextJs SDK: Learn to redirect users to the same page post-logout using cookies\". Hello Everyone! I have been working on a Next.js project that uses Auth0 to manage user flows securely. It has multiple sections and routes where users can log in or out. Currently, when users log out, they are redirected to the homepage. However, I ..."
url: "https://hashnode.com/posts/auth0-nextjs-sdk-learn-to-redirect-users-to-the-same-page-post-logout-using-cookies/65f4435c1f8a6f96fbada335"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Auth0-NextJs SDK: Learn to redirect users to the same page post-logout using cookies](https://saseek.com/auth0-nextjs-sdk-learn-to-redirect-users-to-the-same-page-post-logout-using-cookies?utm_source=hashnode&utm_medium=feed)

Hello Everyone! I have been working on a Next.js project that uses Auth0 to manage user flows securely. It has multiple sections and routes where users can log in or out. Currently, when users log out, they are redirected to the homepage. However, I ...

Feb 9, 2024 · 2 min read · saseek.com  
Updated Mar 17, 2024  
Read the article

-   [#authentication](https://hashnode.com/tag/authentication)
-   [#auth0](https://hashnode.com/tag/auth0)
-   [#logout](https://hashnode.com/tag/logout)
-   [#cookies](https://hashnode.com/tag/cookies)
-   [#nextauthjs](https://hashnode.com/tag/nextauthjs)
-   [#nextjs](https://hashnode.com/tag/nextjs)

## Written by

[Saseek Azmi](https://hashnode.com/@saseek)

@saseek · Chennai, India

  
[View profile](https://hashnode.com/@saseek)

Senior Software Engineer @Relevantz

Senior Software Engineer @Relevantz | I write about modern JavaScript &amp; building web apps

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
