RE: [PHP] msession - giving me a hard time

From: Date: Fri, 14 Nov 2003 23:37:23 +0000
Subject: RE: [PHP] msession - giving me a hard time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169704@lists.php.net to get a copy of this message
--- Guillaume Dupuis <guillaume.dupuis@sand.com> wrote: > <?php > session_start($_GET['SID']); > echo SID; > ?> I think SID is a constant that will be something like this: ?PHPSESSID=12345 or nothing. It is this way so that you can use it to append to a URL, and it will not add anything to the URL if there is no session defined. So, something like this: http://example.org/<? echo SID; ?> I missed the first part of this thread, so my apologies if this answer misses the mark. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#169704) next »