|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-03 11:41 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 14:00:02 2025 UTC |
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:(