Back

nextjs SSR session in CSR

  • 0
  • General
  • Auth
  • Cloud
  • Realtime
  • Self Hosted
Jasper
13 Feb, 2025, 08:20

Hi, How could you access the user session in a csr component I need access to the session for handling real time updates. As the cookie that contains the session secret is http only you cannot access it from JS.

TL;DR
Developers are looking to access the user session in a CSR component in Next.js for handling real-time updates. The cookie containing the session secret is HTTP only, which makes it inaccessible from JavaScript.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more