Hmm, session_id() with generated session ID needs to be called before call to session_start(). Which is part, that is obviously missing now.