I'm using python and selenium to browse a website, once logged in I would like to transfer the session (exporting cookies) from the selenium browser to a python requests session, but I noticed that there is a cookie called "session-token " which is not transferred, I also noticed that this cookie is marked as:
- HostOnly
- Secure
- HttpOnly
I've already read this question, using Postman's Interceptor bridge extension and synchronizing cookies, I noticed that the "session-token" cookie is exported to the desktop program, how is this possible? Is there any way to read the value of this cookie?
I tried logging in directly using requests but the cookie is not being set. I also tried to print the cookies using the console, this is the code:
var theCookies = document.cookie.split(';');
for (var i = 0 ; i <= theCookies.length; i++) {
console.log(theCookies[0] );
}
but the cookie is not printed.