Keep user login - Session, cookies or localstorage

Hey guys, I’m here again hahaha

I’m building a extension (webpage - htmldialog) that I keep the user logged using php session, but every time the user opens the sketchup he needs to login. I wanna do something like a “ordinary” browser, the user’s login persist while the session is not destroyed, we close and reopen the browser a several times and the session still extisting. I’ve tried using session (php), cookies and localstorage, but I was unsuccessful

Anyone have a better idea? hahaha

thanks a lot!