That's what I have done but im scared of any chance of repeating sessions. To combat it, i've just coded this (i basically use my function wherever I would normally use session_start()):
// session_start2(): creates a unique session id
function session_start2() {
global $session_id2;
global $session_ts_start;
session_start();
if ($session_id2 == "") {
$session_id2 = (chr(rand(97,122)) . str_replace(" ","",(str_replace(".","",microtime()) . chr(rand(97,122)) . str_replace(".","", $_SERVER['REMOTE_ADDR']))) . chr(rand(63,90)));
}
if ($session_ts_start == "") {
$session_ts_start = time();
}
$_SESSION["session_id2"] = $session_id2;
$_SESSION["session_ts_start"] = $session_ts_start;
}
// End session_start2()
That seems to work - and it generated the ID from the current timestamp in microseconds, the IP and three random letters - so i think were done! 😃...
Thanks for your help, all!