How is it possible that perfectly straightforward, conventional, PHP web code that worked perfectly while hosted on Network Solutions does not work on GoDaddy while both service providers are ostensibly running the same versions of PHP and Linux Apache. The code WORKED on NetSol but not on GoDaddy: Why on one and not on the other ~ that is the question?
None of the previous answers I've found here in Stackoverflow address this particular issue and, in addition, having nonetheless tried those answers just in case, I can attest that they do not resolve this issue.
The issue is simple: 2 well established, built-in, PHP functions will not work on GoDaddy - but do on NetSol: After extensively Googling, and also reviewing Stackoverflow, for an answer - none of which links actually provide an answer to this question - and even after talking to a GoDaddy support tech, I finally admit defeat: I do not understand or know why these functions do not/will not work on GoDaddy but do work perfectly, and as expected/as designed, on Network Solutions.
On Network Solutions, calling if(session_regenerate_id(true))
always produces a boolean true
result when appropriate. The exact same code on GoDaddy NEVER produces a true
result. Not only that, on NetSol, the session_id
does get updated/changed as desired and as expected but not so on GoDaddy.
Likewise, On Network Solutions, calling if(setcookie($name, $value, $expire, $path, $domain, $secure, $httponly))
always produces a boolean true
result when appropriate. The exact same code on GoDaddy NEVER produces a true
result. Not only that, on NetSol, the related cookie does get created/updated/deleted as desired and as expected but not so on GoDaddy.
I would dearly love to find out why something that works in one service provider environment does not in the other or else I am taking up flower arranging as a career; even mucking out horse stables or cow sheds ~ something I have not done recently :) would be preferable to spending any more time trying to figure this out I am frustrated enough to consider that as an option!!!
Please do not refer me back to links like session_regenerate_id(true) not work or PHP Regenerating session ID on login / out not working. I've tried those suggestions and they do not resolve this issue.