Date: 11/09/00
- Previous message: Jan Kneschke: "Re: [phplib-dev] phplib using php4 native sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I found a tiny typo in view_sessions.php (both on the cvs version and in
the current release 2.7c) which prevented the script from deleting stored
sessions properly. There was originally the variable $k used in the build
of the query, but it should be $v instead, since $k is just the index:
---------SNIP-------------------------------------------------------------
$query = sprintf("delete from %s where name = '%s' and sid = '%s'",
$sess->that->database_table,
$sess->name,
$v);
--------------------------------------------------------------------------
This was discovered by a test of the phplib-4 extension, which obviously
doesn't set the $sess->that data as in version 3. That caused a
MySQL-Error showing the complete query (with a strange 'sid' like e.g.
'1', depending on which checkbox was selected) since the table name was
empty. If you tried to delete sessions in version 3 before the wrong
access simply couldn't be seen so easily.
So, the question is: WHAT HAPPENED to $sess->that????
Concerning phplib-4's stability:
After the first tests it looks quite promising, up to now I had after
minor corrections of my scripts code no problems working with the new
phplib-4 package. Well done.
Regards,
Marko
--
O _ O
0 0
------------------m-\o/-m------------------------------------------
Marko K"aning Tel/Fax: +49-3834 554 442 / -3834 554 301
INP Greifswald email : kaening <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>
- Previous message: Jan Kneschke: "Re: [phplib-dev] phplib using php4 native sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

