Re: SID
| From: | Teodor Cimpoesu | Date: | Mon, 30 Oct 2000 14:45:29 +0000 |
| Subject: | Re: SID | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22687@lists.php.net to get a copy of this message | ||
Hi n!
On Mon, 30 Oct 2000, n e t b r a i n wrote:
> Hi all,
> I've got a strange problem with the use of the sessions on my php script ...
> everything works fine except for the use of the SID constant ... I mean:
>
> all my script start with
>
> session_start();
>
> but if I try to use the SID inside them (e.g. <..
> my_file.php?<?=SID;?>>link</a> ....), nothing is printed, simply leaving a
> blank query string ...
>
> I've tried to print it in several ways, but nothing seems to work ...
>
> e.g.
>
> <?print SID;?>
> <?echo(SID);?>
> ... etc. ...
>
s/SID/$&/
or, detailed, SID is a global variable, so use the `$SID' syntax to refer
to it.
-- teodor