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

TheSpeedyspin

Client
Регистрация
08.12.2024
Сообщения
6
Благодарностей
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 502
Благодарностей
5 921
Баллы
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.
 

TheSpeedyspin

Client
Регистрация
08.12.2024
Сообщения
6
Благодарностей
0
Баллы
1
@VladZen, but I mentioned in my previous post I tried "Works with cookies," and that also didn't work.
 

TheSpeedyspin

Client
Регистрация
08.12.2024
Сообщения
6
Благодарностей
0
Баллы
1
When I check the cookie window after importing the cookies, I see it has loaded into the browser, but I am not logged into the account. Somehow, the website must know the difference between the cookies that were cleared and added back compared to keeping the cookies in the browser.
 

TheSpeedyspin

Client
Регистрация
08.12.2024
Сообщения
6
Благодарностей
0
Баллы
1
Even saving a profile after manually logging into the website and then loading the profile later is not working. That is odd. I'm not sure how the website detects the difference.
 

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