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.

Detecting invalid cookies

See original GitHub issue

Tradeoffer manager is currently detecting certain cases, when the trade offer simply cannot be sent/accepted, e.g. NewDevice. However, it’s still not detecting invalid cookies.

If cookies become invalid, it’s impossible to accept or send any trade offer without “refreshing” the cookies.

Manager currently does this:

  • when accepting trade offer, manager will return error “HTTP error 403”. If auto-retry is enabled, manager will attempt to repeatedly accept the trade offer even though it’s impossible
  • when sending trade offer, manager will emit error “HTTP error 401”

It’s possible to detect invalid cookies by checking the response from request module. In both cases, the cookie header will no longer contain steamLogin nor steamLoginSecure cookies.

It would be great if manager detected these cases and provided appropriate error.cause.

Here’s my testing script.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DoctorMcKaycommented, Mar 13, 2016

Sorry, I didn’t mention that along with those hooks, the latest version of steamcommunity also has a sessionExpired event.

0reactions
scholtzmcommented, Mar 13, 2016

Just to make this clear for everyone including myself, the suggested way would be to use “post HTTP hook” and check the httpError?

Also, if using both steamcommunity as well as manager, I’m assuming it’s probably best to instantiate manager with an already active steamcommunity instance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: invalid cookie detected
Hi There,. I've just installed the splunk-4.2.3-105575-x64-release and trying to login using he web browser (ie8) shows a message: Invalid cookie detected.
Read more >
How to detect invalid Js cookie and remove it
I have set a cookie1 from [.abcsite.com] . when no domain mentioned from API it sets a cookie1 by default to [www.abcsite.com] ....
Read more >
Invalid Cookie Handler
Use the Invalid Cookie Handler to validate the values of cookies. Depending on the security requirements, you can get by with a few...
Read more >
How to Fix 'We've Detected a Problem with your Cookie ...
What causes the 'We've Detected a Problem with your Cookie Settings' Error Message? ; Open up Mozilla Firefox. On the top-right corner, click...
Read more >
7 Keys to the Mystery of a Missing Cookie
Troubleshooting tip: In Chrome type in the URL chrome://flags and disable these two flags: SameSite by default cookies and Cookies without ...
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