Re: Session_id within URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux