Can someone test this on php 4.46 under Linux?
-
The zip file of this is at http://gpssharing.com/cookie.zip. The test is at http://gpssharing.com/cookie.php Run the prog, then refresh the page, so the cookies will be read after being set. can you see the two cookies 'fred' and 'test'? Works fine on 4.4.6 under windows and 4.4.4 under Linux Thanks in advance. document.cookie = 'test=hello world; path=/'; _COOKIE Array
"; print_r($_COOKIE); echo "_COOKIE['test'] " . $_COOKIE["test"] . "
"; echo "_REQUEST['test'] " . $_REQUEST["test"] . "
"; echo "_SERVER['HTTP_COOKIE'] " . $_SERVER["HTTP_COOKIE"] . "
"; echo ""; //phpinfo(); ?>
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
Mate that s trivial stuff... it will work.
Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.
Bradml wrote:
it will work
Want to bet!!!! I just had a reply from my ISP, I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. It looks like one thing has been fixed, breaking something else! Hopefully other will 'learn' from this, at least my ISP did check out my test prog and admit to the problem, and have given me a solution.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
Bradml wrote:
it will work
Want to bet!!!! I just had a reply from my ISP, I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. It looks like one thing has been fixed, breaking something else! Hopefully other will 'learn' from this, at least my ISP did check out my test prog and admit to the problem, and have given me a solution.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
Have you contacted Stephan Esser? If not please give me the details of what went wrong and I'll let him know.
Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.
No I have not, who is he? I have slightly modified the zip file on my site, to display the version no of PHP So if you know this guy please forward this info, here is the contents of the email from my ISP I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. When I disable suhosin I see _COOKIE Array Array ( [fred] => home less [test] => hello world ) _COOKIE['test'] hello world _REQUEST['test'] hello world _SERVER['HTTP_COOKIE'] fred=home+less; test=hello world It appears that it is blocking the document.cookie setting. I am not showing any errors so I am going to contact the author of suhosin to see if they have any suggestions.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
No I have not, who is he? I have slightly modified the zip file on my site, to display the version no of PHP So if you know this guy please forward this info, here is the contents of the email from my ISP I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. When I disable suhosin I see _COOKIE Array Array ( [fred] => home less [test] => hello world ) _COOKIE['test'] hello world _REQUEST['test'] hello world _SERVER['HTTP_COOKIE'] fred=home+less; test=hello world It appears that it is blocking the document.cookie setting. I am not showing any errors so I am going to contact the author of suhosin to see if they have any suggestions.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
please try this script, unfortunately I do not have access to a running PHP 4 server right now.
setcookie('fred', 'home less', null, '/', null, null, false);
Stephan Esser is the man who found the PHP security response team and the Suhosin project.
Brad Australian - unknown PHP Developer on "Job Prospect" Requirement: * Experience working with XML, XSL, XPath Comment: and other things starting with X.
-
please try this script, unfortunately I do not have access to a running PHP 4 server right now.
setcookie('fred', 'home less', null, '/', null, null, false);
Stephan Esser is the man who found the PHP security response team and the Suhosin project.
Brad Australian - unknown PHP Developer on "Job Prospect" Requirement: * Experience working with XML, XSL, XPath Comment: and other things starting with X.
Bradml wrote:
Stephan Esse
Thanks, Google just beat you, I am looking at the forums now. Unfortunately I can't really use setcookie on my site, as with all software I could re write my code, but as the ISP is chasing this up. They have just got back to me with a work around, I am impressed. Thanks for your reply, as I am sure you will agree software updates are real fun;)
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
Bradml wrote:
Stephan Esse
Thanks, Google just beat you, I am looking at the forums now. Unfortunately I can't really use setcookie on my site, as with all software I could re write my code, but as the ISP is chasing this up. They have just got back to me with a work around, I am impressed. Thanks for your reply, as I am sure you will agree software updates are real fun;)
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
What was the work around?
Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.
Bradml wrote:
What was the work around?
From their email:- We aren't willing to completely disable suhosin, but I have disabled the cookie encryption setting It is very refreshing to have an ISP that actually looks into and 'fixes' problems
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
Bradml wrote:
What was the work around?
From their email:- We aren't willing to completely disable suhosin, but I have disabled the cookie encryption setting It is very refreshing to have an ISP that actually looks into and 'fixes' problems
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
That is quite nice of them, however that is a very useful function of Suhosin...
Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.
The ISP is surfspeedy.com perhaps the level 3 support were bored and fancied a play? But I can't complain. My LINUX skills are rusty so I can't comment about Suhosin but their forums do seem active, and it seems there are 'issues' with it. I get concerned when the last 2 release dates of a product were 2007.03.06 and 2007.03.04 generally I find if a product has so many releases, there is something wrong there. It may just be a group of happy hackers adding new bits or that they have not tested/designed the new features properly and have introduced bugs I hasten to add I am in no way criticising Suhosin, I know absoulutely nothing about it.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
-
The ISP is surfspeedy.com perhaps the level 3 support were bored and fancied a play? But I can't complain. My LINUX skills are rusty so I can't comment about Suhosin but their forums do seem active, and it seems there are 'issues' with it. I get concerned when the last 2 release dates of a product were 2007.03.06 and 2007.03.04 generally I find if a product has so many releases, there is something wrong there. It may just be a group of happy hackers adding new bits or that they have not tested/designed the new features properly and have introduced bugs I hasten to add I am in no way criticising Suhosin, I know absoulutely nothing about it.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
The reason for so many releases is that PHP is constantly updated and therefore compatibility issues are encountered. Also they update it to protect against the latest PHP vulnerabilities.
Brad Australian - Captain See Sharp on "Religion" any half intelligent person can come to the conclusion that pink unicorns do not exist.
-
The zip file of this is at http://gpssharing.com/cookie.zip. The test is at http://gpssharing.com/cookie.php Run the prog, then refresh the page, so the cookies will be read after being set. can you see the two cookies 'fred' and 'test'? Works fine on 4.4.6 under windows and 4.4.4 under Linux Thanks in advance. document.cookie = 'test=hello world; path=/'; _COOKIE Array
"; print_r($_COOKIE); echo "_COOKIE['test'] " . $_COOKIE["test"] . "
"; echo "_REQUEST['test'] " . $_REQUEST["test"] . "
"; echo "_SERVER['HTTP_COOKIE'] " . $_SERVER["HTTP_COOKIE"] . "
"; echo ""; //phpinfo(); ?>
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
You could have posted this message in http://www.codeproject.com/script/comments/forums.asp?forumid=1651[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips