I cannot get my SID working ...
<?php
session_start();
// Or maybe pass along the session id, if needed
echo '<br /><a href="page2.php?' . SID . '">page 2</a>';?>
does not show up SID number but session_id is working not sure if I am missing something. THnks
The SID constant will show an empty string if a a cookie with the name of session.name has been detected by PHP. See the manual page. That means, that SID will contain a useful string only before the session cookie has been sent to the browser.
That also means that if a browser refuses cookies the SID constant will work. Provided that seesion.use_trans_id is enabled, as Gumbo said.
You need to have session.use_trans_sid
enabled to have PHP accept a session ID passed by either GET or POST.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With