Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Cookies Even Without "RestoreCookies" #201

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

AdrianJSClark
Copy link
Owner

Previously the code only checked the cookie container for relevant cookies if the "RestoreCookies" delegate was configured. This means that if the cookie container was populated some other way then the login process would be called again.

Move the check for cookies which might be existing, valid authentication outside the check for "RestoreCookies" delegate to take advantage of any data the collection already contains.

Fixes: #200

Previously the code only checked the cookie container for relevant
cookies if the "RestoreCookies" delegate was configured. This means that
if the cookie container was populated some other way then the login
process would be called again.

Move the check for cookies which might be existing, valid authentication
outside the check for "RestoreCookies" delegate to take advantage of any
data the collection already contains.
@AdrianJSClark AdrianJSClark self-assigned this Apr 20, 2024
@AdrianJSClark AdrianJSClark linked an issue Apr 20, 2024 that may be closed by this pull request
@AdrianJSClark AdrianJSClark merged commit 253bcdf into main Apr 20, 2024
2 checks passed
@AdrianJSClark AdrianJSClark deleted the 200-always-use-cookies-from-cookiecontainer branch April 20, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Cookies from CookieContainer when RestoreCookies is not set
1 participant