Ich habe es endlich geschafft! Die Verwendung von session_destroy() hat letztlich den Durchbruch gebracht.
So geht es:
PHP-Code:
// stop current session and save content
$oldSessData = session_encode();
$oldSessionID = session_id();
session_destroy();
session_write_close();
// create new session
$newSessionID = GenerateRandom();
session_id($newSessionID);
session_start();
// do some stuff with new session here!
// stop new session
session_write_close();
// restore old session
session_id($oldSessionID);
session_start();
session_decode($oldSessData);
// return new session to user for further use
echo session_name() . "=" . $newSessionID;
Danke für die Tipps und Hinweise!