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.

cookie set on redirect not being cleared

See original GitHub issue

Steps to reproduce:

  1. Set FMN to clean cookies on all instances of leaving a domain, with a short delay – say, 6 seconds.
  2. Open http://www.surfaceimpression.com/ in a new tab. The tab will immediately redirect to https://surfaceimpression.digital/.
  3. Check cookies. There will be three: one from www.surfaceimpression.com, one from surfaceimpression.digital, and one from beta.surfaceimpression.digital.
  4. Wait 6 seconds and check cookies again. All three will still be there, meaning that the redirect from surfaceimpression.com to surfaceimpression.digital was not handled by FMN as a domain leave.
  5. Close the surfaceimpression.digital tab.
  6. Wait 6 seconds and check cookies again. The two from surfaceimpression.digital will be gone but the one from surfaceimpression.com will still be there.

Tested in a fresh profile with FMN 1.0.5 on FF 62.0.3 on macOS 10.12.

PS: I just saw your new post in #67 and look forward to reading through the details when I get a moment.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Lusitocommented, Jan 8, 2019

Just tested all scenarios with the new code and all cookies get removed correctly.

1reaction
Lusitocommented, Dec 4, 2018

Thanks for the examples. I’m already working on improving the situation. Not sure if I can catch all of these cases, but it will get better 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cookies disappear after redirect - node.js - Stack Overflow
When the browser requests http://server.com/login and gets back in the response a Set-Cookie header, the cookie is set on and restricted to the ......
Read more >
Cookie value lost when I Redirect to a new web page - MSDN
I create a cookie on one webform by the folowing code: Response.Cookies("User").Value = "Test" I then redirect to the next webform using the...
Read more >
Cookies are not sent after redirect (even on same origin) #1404
To be clear, I think having the cookies argument be a plain dictionary without information about each cookie as would have been received...
Read more >
Trouble setting a cookie and performing a redirect at same time
I'm trying to set up a route that checks for a query string and if it matches, set a cookie and then redirect...
Read more >
IV92428: EXAMPLE CODE IN REDIRECT.HTML DOES ... - IBM
In particular the example code provided is missing the Path=/; on the line that clears the cookie. This would result in some browsers...
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