Using session.use_trans_sid to automatically update all links to contain the session ID, if required, is a good thing; however, it does not work if those links are dynamically generated by PHP. However, PHP offers two functions that provide all information that is needed:
Therefore, the preceding code creates a dynamic link that contains this information, enabling the programmer to make dynamic links session-aware. One potential output of this code is the following: <a href="page.php?PHPSESSID= 5b25b64843fad0d1afb4286cfe0ed448">dynamic link</a>
|