CsS Posted August 13, 2017 Report Share 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 Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 14, 2017 Report Share 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 Link to comment Share on other sites More sharing options...
CsS Posted August 15, 2017 Author Report Share Posted August 15, 2017 Fixed. I forgot to update the file Quote Link to comment Share on other sites More sharing options...
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.