Cookies
I wrote a HelpDesk program. Everything worked fine. I copied it over to a different server and suddenly, there are dozens of bugs.
The one that is really getting me is the cookies. I have an option where the user can set a cookie to rememeber their username and password.
When the user logs out, I get them the option to destroy the cookie.
However, on this new server, I can't kill the cookies. The second set of code doesn't work.I check the phpinfo(), and tried using unset($HTTP_COOKIE_VARS) - didn't work. I've no clue what to do. Do any of you know of a different / better way to kill cookies? Anyone aware of server settings that would hamper this code? The server is running PHP version 4.0.6, the server it was copied from is running 4.3.3.
On a more amusing note, CSS also refuses to on the new server. Completely. And just for my HelpDesk, too...
Ammendum: Problem solved! Thanks for the help, guys. When I'm done with the HelpDesk I'll let you all come through and pick at my code.
The one that is really getting me is the cookies. I have an option where the user can set a cookie to rememeber their username and password.
setcookie ("cookie_username", $cookie_username, time()+60*60*24*365, "/");
setcookie ("cookie_password", $cookie_password, time()+60*60*24*365, "/");
When the user logs out, I get them the option to destroy the cookie.
setcookie ("cookie_username", "", time()-100, "");
setcookie ("cookie_password", "", time()-100, "");
However, on this new server, I can't kill the cookies. The second set of code doesn't work.I check the phpinfo(), and tried using unset($HTTP_COOKIE_VARS) - didn't work. I've no clue what to do. Do any of you know of a different / better way to kill cookies? Anyone aware of server settings that would hamper this code? The server is running PHP version 4.0.6, the server it was copied from is running 4.3.3.
On a more amusing note, CSS also refuses to on the new server. Completely. And just for my HelpDesk, too...
Ammendum: Problem solved! Thanks for the help, guys. When I'm done with the HelpDesk I'll let you all come through and pick at my code.
