kaminas 0 Posted May 7, 2017 Report Share Posted May 7, 2017 Hello I want to autologin to gmail with prior loaded cookies. When I signed in, I can save all cookies to local file. Then I clear cookies, and then set them again - after reload gmail or any other website don't authorize me. This functions don't work, or I did something wrong, or due to https? But if https, then I don't believe, because chrome/firefox automatically sign in to my emails, so I want to believe ubot can do the same. set(#all_cookies,$get all cookies,"Global")save to file("C:\\cookies.txt",#all_cookies)clear cookiescreate table from file("C:\\cookies.txt",&cookies)set(#loop_counter,0,"Global")loop($table total rows(&cookies)) { set cookie($table cell(&cookies,#loop_counter,0),$table cell(&cookies,#loop_counter,1)) increment(#loop_counter)} Quote Link to post Share on other sites
HelloInsomnia 1103 Posted May 8, 2017 Report Share Posted May 8, 2017 Be sure to navigate to the site first, then load cookies then renavigate. Also, I would login in a browser and use EditThisCookie extension to see what cookies you need, then start to delete them until you find the ones that affect the login process. Then look at the cookies Ubot gets and you will see if it got the correct ones. 2 Quote Link to post Share on other sites
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.