[dev] session id contains illegal characters ... ?

Jan Schneider jan at horde.org
Tue Mar 25 11:53:41 PST 2003


Quoting "Marc G. Fournier" <scrappy at hub.org>:

> Got it:
> 
>         } else {
> //            if (isset($GLOBALS['UNIQUE_ID'])) {
>                 $new_session_id = $GLOBALS['UNIQUE_ID'];
>   //          } elseif (function_exists('posix_getpid')) {
> //                $new_session_id = md5(microtime() . posix_getpid());
>    //         } else {
>    //             $new_session_id = md5(uniqid(mt_rand(), true));
>      //       }
>             session_id($new_session_id);
> 
> I've tried using all three ... posix_getpid and mt_rand both work fine,
> the UNIQUE_ID one seems to be the one that generates the error ...

That's strange, looking at your phpinfo page, Apache seems to generate only
perfectly valid unique ids.
 
> On Mon, 24 Mar 2003, Marc G. Fournier wrote:
> 
> >
> > NOt sure if this helps any, but if I try and use the SQL
> sessionhandler,
> > my session_id's are looking like:
> >
> > 1_662_maildb=# select session_id from horde_sessionhandler;
> >             session_id
> > ----------------------------------
> >  Pn at yx0B14IUAAKLUCmI
> >  Pn at 1iEB14IUAAKM1WRo
> >  e99f59709f6f4712a33f8a8d64249d45
> >  Pn at 2LkB14IUAAKLWCv4
> >  a85014387ae02cf8db4ec35b212de7ce
> >  a7ee1a1dc4eaaaf6ef4c9b77af85dc7b
> >  Pn at 4dUB14IUAALa5DpI
> > (7 rows)
> >
> > Those '@'s don't belong, do they?

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list