Bug #69006 [Com]: cookie problem

From: Date: Fri, 18 Mar 2016 10:04:11 +0000
Subject: Bug #69006 [Com]: cookie problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199915@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69006&edit=1 ID: 69006 Comment by: lokendra dot kushwah at galaxyweblinks dot in Reported by: simon_freedom125 at hotmail dot com Summary: cookie problem Status: Not a bug Type: Bug Package: Session related Operating System: windows PHP Version: 5.6.5 Block user comment: N Private report: N New Comment: We are facing same issue in PHP 5.6.3 Can you please help ? Previous Comments: ------------------------------------------------------------------------ [2015-02-22 07:08:25] requinix@php.net NABing based on the comments >So the problem probably lies in IE, and >I don't see anybody having the same problem, should be a case on my code. (say something if you disagree) ------------------------------------------------------------------------ [2015-02-22 04:22:17] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2015-02-13 11:16:32] simon_freedom125 at hotmail dot com somehow, the solution which I provided suddenly does not work anymore. Since I don't see anybody having the same problem, should be a case on my code. ------------------------------------------------------------------------ [2015-02-13 06:18:27] simon_freedom125 at hotmail dot com Ok, so i heed your advice and use mainly 2 functions, correct me if those are not what your were referring to or if there are more which I am still unaware of: var_dump(headers_list()); var_dump(http_response_code()); The headers list printed out fine as it is supposed to. The http_response_code() which I called immediately after setting the sessionID cookie returned int(200), looks like things are fine in php like you mentioned. So the problem probably lies in IE, as I happened to accidentally resolved the issue after noticing the problem is gone after I clicked 'enter' at least 3 times to separate the redirection header from the setcookie function. Apparently, doing echo "\r\n"; will solve the issue as well. ------------------------------------------------------------------------ [2015-02-11 01:33:54] rasmus@php.net Cookies are super-easy to debug. Just look at the Set-Cookie header in the response. What the browsers are doing is not relevant here. If you have the right cookie name and the expiry is correct, then PHP is doing its job. Anything else has nothing to do with PHP. So, please restate the bug in terms of the Set-Cookie output you are getting and explain why it is not what you expected. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=69006 -- Edit this bug report at https://bugs.php.net/bug.php?id=69006&edit=1

« previous php.bugs (#199915) next »