Use of a cookie to get logged through the browser

Hi everyone!!,

I’m trying to get logged in automatically through the browser passing some parameters through a PHP program. Let’s say, I have the credentials and I want to pass somehow these credentials and get logged - WEB, not API - . I tried to follow the below link but unfortunately it’s already disabled. I have Jira Cloud.
https://confluence.atlassian.com/cloudkb/how-to-make-use-of-a-cookie-to-get-logged-through-the-browser-945106839.html

Do you know if there’s an official way to do it by creating a cookie or session cause I didn’t succeed in doing it.

thanks so much!!