Re: session passing to other site
| From: | Ben-Nes Michael | Date: | Wed, 05 Jul 2000 15:15:59 +0000 |
| Subject: | Re: session passing to other site | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4977@lists.php.net to get a copy of this message | ||
I read this and tried but its not returning any value nor by padding it to the
url nor by calling echo.
Daniel Gustafsson wrote:
> At 05:45 PM 7/5/00 +0300, you wrote:
> >I tried to pass the it as SID=some strings
> >but it didn't helped, it only cause the session to totally disappear from
> both
> >URL
>
> SID is a macro, not a variable, if you are to pass the SID (session
> identifier) you can use the macro SID (which contains
> SESSIONVARNAME=session_id())
>
> like this:
> <a
> href='http://localhost/test.php?<?=SID?>'>
>
> And if the browser has cookies enabled, the SID macro will be empty, and
> the session id will get passed via the cookie.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-6-6925757
Fax: 972-6-6925858
http://www.canaan.co.il
--------------------------