session_start();
$s = SID; //get Session ID
echo "<a href=\"page.php?$s\">Page</a>";
Mostly for passing the session as a GET variable to another page, like
for anything from authentication tokens to form data etc...
Of course for form data it would probably be better to encapsulate the
session veriables within the form.
-B
Alain Roger wrote:
Hi,
I would like to understand the purpose of placing SESSION_ID within the URL.
I suppose it is for security improving... However, how to do it ?
i mean how can it be useful ? how can i use it ?
thanks a lot,
Alain
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php