Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP] <?=SID?> is not translated...

0 views
Skip to first unread message

Christian Marschalek

unread,
May 20, 2001, 10:04:48 PM5/20/01
to
My system does not tranlate <?=SID?> into the PHP Session id... Don't
have a clue why, though...

Any clues?

Tia! Chris


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general...@lists.php.net
For additional commands, e-mail: php-gene...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net

Markus Fischer

unread,
May 21, 2001, 11:24:33 AM5/21/01
to
Hallo Chris,

On Mon, May 21, 2001 at 04:08:52AM +0200, Christian Marschalek wrote :
> My system does not tranlate <?=SID?> into the PHP Session id... Don't
> have a clue why, though...

SID gets only defined if the appropriate cookie is NOT set (which
makes sense: you don't need to populate it anywhere in your code
if the right cookie is set).

If you just want the session ID use 'session_id()'.

- Markus

Christian Marschalek

unread,
May 21, 2001, 3:12:13 PM5/21/01
to
I know that, and this option is not enabled and <?=SID?> does not work
although the cookies are turned off...

> -----Original Message-----
> From: Rama [mailto:p...@mailops.com]
> Sent: Monday, May 21, 2001 8:19 AM
> To: Christian Marschalek
> Subject: RE: [PHP] <?=SID?> is not translated...
>
>
> http://www.php.net/manual/en/ref.session.php
>
> PHP is capable of doing this transparently when compiled
> with --enable-trans-sid. If you enable this option, relative
> URIs will be changed to contain the session id automatically.
> Alternatively, you can use the constant SID which is defined,
> if the client did not send the appropriate cookie. SID is
> either of the form session_name=session_id or is an empty string.
>
>
> Rama


>
> -----Original Message-----
> From: Christian Marschalek [mailto:c...@chello.at]
> Sent: Sunday, May 20, 2001 8:09 PM
> To: php-g...@lists.php.net
> Subject: [PHP] <?=SID?> is not translated...
>
>
> My system does not tranlate <?=SID?> into the PHP Session
> id... Don't have a clue why, though...
>

> Any clues?
>
> Tia! Chris

Johnson, Kirk

unread,
May 21, 2001, 3:15:06 PM5/21/01
to
Is the session.use_trans_sid flag set to 1 in php.ini?

Kirk

0 new messages