Need help. I am not logged into my account after using LoadCookie

TheSpeedyspin

Client
Регистрация
08.12.2024
Сообщения
2
Благодарностей
0
Баллы
1
Hello. I am storing cookies to remain logged into my account without the need to sign-in, but I am having trouble.

Currently, the flow I have in Zennposter is I manually sign into the account for "Website A". Then I use SaveCookie to store the cookie in a text file as so:

C#:
instance.SaveCookie(@"C:\Users\oooo\OneDrive\Documents\ZP\AccountCookiesFiles\1.txt");
Afterward, I clear cookies in the browser and navigate to "Website B." Website B doesn't matter. But here, I use LoadCookie to load Website A's cookies:
C#:
instance.LoadCookie(@"C:\Users\oooo\OneDrive\Documents\ZP\AccountCookiesFiles\1.txt");
Then, I return to Website A. I should be logged into my account, but I'm not. The above code is not working. I also tried Zennoposter's Add Action >Browser >Works with cookies cube/block to Import and Export cookies, but it is also not working on the website.

Can someone help me figure out if I am doing something wrong or missing something? Is the cookie not loading into the browser? Or can a website detect if Zennoposter has loaded a cookie into the browser?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 492
Благодарностей
5 919
Баллы
113
I would recommed to use Works with cookies options for that job. Their functionality is more up-to-date.
When you save cookies, make sure there are the cookies for certain domain (website A) in the profile, you can control it Current profile window>Cookies tab.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)