#41885 [Opn->Bgs]: The problem case by "phpsessid=deleted"
ID: 41885
Updated by: tony2001@php.net
Reported By: ivyrake at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: linux
PHP Version: 5.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-07-03 11:34:48] ivyrake at gmail dot com
Description:
------------
Perhaps it was my fault(i use the code:setcookie("PHPSESSID", "",
time() - 3600);),but it make me very trouble.
Now and then my website user could access other's accounts by HIMSELF
ID/Password!
This remained until I found some user's cookie['phpsessid']="deleted".
So I wrote some code in my login.php:
if ("deleted" == session_id())
{
exit();
}
.
later I traced the file head.c,I find that if setcookie("PHPSESSID",
"")
"PHPSESSID=deleted;expires=xxxxxxxx" will appear in HTTP head(for
ie).It really an accurate method?
At the same time I find that Cookie sent by user's browser has no
";expires=xxxx",only has "PHPSESSID=deleted", What can cause this
appear?
Sorry for my poor english:(
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41885&edit=1
Thread (2 messages)