Re: Re:Re: [PHP] How do I use sessions if cookies are turned off in the browser?
| From: | Chris Shiflett | Date: | Sat, 21 Aug 2004 04:24:28 +0000 |
| Subject: | Re: Re:Re: [PHP] How do I use sessions if cookies are turned off in the browser? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194386@lists.php.net to get a copy of this message | ||
--- John Holmes <holmes072000@charter.net> wrote:
> From: "fongming" <fongming@fonn.fongming.idv.tw>
> > 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/