I know that usual PHP sessions don't work as expected in CLI mode because they're based on cookies.
But what if I need to keep some user settings until terminal is closed? For example, user can specify UI language, some extra credentials, color scheme etc. I could save the settings in database but how to associate them with the user?
Is there a unique "session" or "connection" ID at all?