Variable PHP Sessions in iOS APP not working

I wouldn’t rely on cookies for authentication/sessions. I would use an API/bearer token. Cookies aren’t guaranteed to stick around between app sessions with a Capacitor app. See this discussion for some ideas - Best way to store Bearer token from API? - #2 by twestrick.