Bootstrap Kirby and sessions

I have tried to bootstrap Kirby into an external script and then working with sessions for some sort of login. While everything seems fine, when I was changing / browsing to another file, it seems the session information was lost.

Is there anything I am missing? Both files have Kirby bootstrapped and are using the same $session set and gets.

it works out of the box, i didn’t notice that the connection went from https to http which then got rid of the session…