Detecting invalid cookies
See original GitHub issueTradeoffer 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:
- Created 8 years ago
- Comments:15 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, I didn’t mention that along with those hooks, the latest version of steamcommunity also has a
sessionExpired
event.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.