Re: session.c:session_id
| From: | Dan Kalowsky | Date: | Tue, 26 Sep 2000 14:46:22 +0000 |
| Subject: | Re: session.c:session_id | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-33734@lists.php.net to get a copy of this message | ||
Yes this is exactly what the source code states as well. But it seems
to do this even when you update the session id to be replaced! Why?
Isn't the functionality at this time supposed to update the session id
(as it does), and return the NEW session id (which it doesn't)?
"Gustafson, Mårten" wrote:
>
> 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).
> >
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Dan Kalowsky "Tonight I think I'll walk alone,
Worldgate Communications I'll find my soul as I go home."
Software Engineer - TICS Group - Temptation