CsS Posted August 13, 2017 Report Posted August 13, 2017 Hi. I have stored session into a file, I am trying to restore it using setCookies function but loggedIn function returns false, With heder location https://steamcommunity.com/login/home/?goto=%2Fmy fs.readFile('/cookies.txt', 'utf8', function (err,data) { if (err) { return console.log(err); } console.log(JSON.parse(data)) // array of cookies from steamcommunity.login function steamCommunity.setCookies(JSON.parse(data)); steamCommunity.loggedIn(function (error, logged_in){ console.log(logged_in) // === false; console.log(error) // === null }); }); Quote
Dr. McKay Posted August 14, 2017 Report Posted August 14, 2017 I'd need to see how you're saving it, but it's not unlikely that the cookies are just expiring. Quote
CsS Posted August 15, 2017 Author Report Posted August 15, 2017 Fixed. I forgot to update the file Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.