Re: Session_id within URL
| From: | Brad Bonkoski | Date: | Tue, 11 Apr 2006 17:51:23 +0000 |
| Subject: | Re: Session_id within URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233783@lists.php.net to get a copy of this message | ||
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