RE: [PHP-DEV] session.c:session_id
| From: | Gustafson, Mårten | Date: | Tue, 26 Sep 2000 14:32:33 +0000 |
| Subject: | RE: [PHP-DEV] session.c:session_id | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33733@lists.php.net to get a copy of this message | ||
session_id ([string id]) sets and/or gets the sessionid id and if sesssionid
is supplied it returns the old sessionid.
From the manual:
"session_id() returns the session id for the current session. If id is
specified, it will replace the current session id"
Regards
-Marten.
> -----Original Message-----
> From: Dan Kalowsky [mailto:dkalowsky@wgate.com]
> Sent: Tuesday, September 26, 2000 4:27 PM
> To: PHP Development
> Subject: [PHP-DEV] session.c:session_id
>
>
> while trying to discover why a series of header redirects
> does not keep
> the initial session id, i began looking in the session code.
> hence this
> question...
>
> PHP_FUNCTION(session_id) returns a string of (old, 0) (line 1125
> ext/session.c)
>
> why 'old'?
>
> while I may be missing something, it seems to me that the
> PS(id) located
> in this code is (possibly) being changed, and PHP is returning the
> pre-updated version of the PS(id).
>