Hi,
session_start();
Du startest eine Session, diese bekommt ID 1.
echo "Seite 1 (a): <br>Session ID: ".session_id()."<br>";
echo "SID: ".SID."<br><br><br>";
$_SESSION['name'] = "MeinName";
Ja ja, blah blah, alles wunderbar - Ausgaben entsprechen noch den von dir erwarteten.
include "http://www.meinedomain.de/session_test.php";
Oha, jetzt forderst du ein weiteres Script ueber HTTP(!) an.
Per GET wird die Session-ID nicht uebergeben, per Cookie auch nicht - der Client ist schliesslich gar nicht im Spiel.
Folge: Keine Session-ID da beim Start der Session, also Erzeugung neuer Session-ID - ID 2.
Woran könnte das liegen??
Am include ueber HTTP.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“