question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to delete a cookie

See original GitHub issue

I tried ctx.cookies.set('jwt', null), but the cookie still there.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13

github_iconTop GitHub Comments

7reactions
mamlcommented, Feb 7, 2019

actually, looks like it’s just ctx.cookies.set(cookieName)

this is correct, per the documentation for cookies.set

If the value is omitted, an outbound header with an expired date is used to delete the cookie.

7reactions
nadavooshcommented, Apr 11, 2018

actually, looks like it’s just ctx.cookies.set(cookieName)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clear, enable, and manage cookies in Chrome - Google Support
Delete specific cookies · On your computer, open Chrome Chrome . · At the top right, click More More and then Settings ·...
Read more >
Delete and manage cookies - Microsoft Support
To delete cookies · In Internet Explorer, select the Tools button, point to Safety, and then select Delete browsing history. · Select the...
Read more >
cookies.remove() - Mozilla - MDN Web Docs
The remove() method of the cookies API deletes a cookie, given its name and URL. The call succeeds only if you include the...
Read more >
Clear the history and cookies from Safari on your iPhone, iPad ...
Delete history, cache, and cookies · To clear your history and cookies, go to Settings > Safari, and tap Clear History and Website...
Read more >
javascript - How to delete a cookie? - Stack Overflow
If you are on a different path than the cookie (for example if you want to delete a cookie that is used on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found