Also consider
a) compiling PHP with --enable-trans-sid
(this will transfer the session id automatically in all the URL:s on your page(s))
b) (In HTML mode) if you need to link to another page, try <a href="anotherpage.php?<?=SID?>">This is a link</a>
-Works for me
-L-