--- John Holmes <[EMAIL PROTECTED]> wrote:
> From: "fongming" <[EMAIL PROTECTED]>
> > You also  can use follows:
> >
> > <a href=script.php?PHPSESSID=session_id();></a>
> 
> You can, if you want to make the (incorrect) assumption that everyone
> will have "PHPSESSID" as the name of their sessions...
> 
> That's what session_name() is for and the SID constant...

Yep, and...

That syntax is wrong anyway - session_id() only returns the session
identifier when used in PHP, not within HTML. :-)

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to