I'll post a code snippet from the man page for [man]session_register/man ...
<?php
// Use of session_register() is deprecated
$barney = "A big purple dinosaur.";
session_register("barney");
// Use of $_SESSION is preferred, as of PHP 4.1.0
$_SESSION["zim"] = "An invader from another planet.";
// The old way was to use $HTTP_SESSION_VARS
$HTTP_SESSION_VARS["spongebob"] = "He's got square pants.";
?>
Basically, just use the second method there to store data in a session.
In the code you provided, it doesn't even look like you're storing anything in the session at all, so there's no need to even start one. If you do want to store or retrieve something in a session, just do a simple:
session_start();
$_SESSION['something'] = 'blahblah';
Then, on subsequent pages where you want to retrieve the data again, simply do
session_start();
echo $_SESSION['something'];
The scope and everything is exactly the same as other superglobals you're using ($POST, $SERVER, etc.), with the addition that you can store and change values as well.
I see you're passing the SID in the url as well. If you want to do this, and ensure it is handled correctly, you might want to call [man]session_id/man before [man]session_start/man if the variable is present, such as...
if(!empty($_GET['sid']))
session_id($_GET['sid']);
session_start();