Selenium Cookie Persistence Fix

via Freelancer ·

Budget / Salary£20–250
TypeFreelance project
LocationRemote
Posted49 minutes ago
I have a small Python script that logs into https://domain.com with Selenium and ChromeDriver. The login itself succeeds, but the cookies never make it to disk, so every new run forces a fresh login. In other words, cookies are not being saved and I need that fixed.

Your task is to diagnose why driver.get_cookies() isn’t capturing the session cookies and then build a clean solution that:

• stores the full, authenticated cookie set at the end of the first run in a PHP-friendly format (JSON is fine)
• reloads those cookies on subsequent runs so the script lands on an already-logged-in page without manual input
• can also be picked up by a simple PHP cURL call to confirm the session really persists across languages

I’ll provide the current code and test credentials. Please work with Selenium 4 and the latest stable ChromeDriver, and keep the fix self-contained so I can drop it into an existing pipeline. A quick turnaround is appreciated—let me know how soon you can deliver and any relevant cookie-handling projects you’ve completed.
php javascript python web scraping software architecture json selenium api integration
Apply on Freelancer →

Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.