You only need one cookie, and that is the one that keeps track of your session ID and PHP does that for you so you yourself do not have to concern about cookies at all.Marco van Wijngaarden wrote:Heavy gee, thanks!i'll see if this will work for me! but i also got another idea to go around this trouble (cos what if my host WILL decide to upgrade after reading my complaining for instance?) The idea i have is to use cookies... that's also new for me, but what do you think?
Do sessions or no storage at all (ie use posting hidden files).
You do realize that I wrote that for you and tested it using PHP4.2.3 ???
In other words, you don't need to panic, but I strongly recommend your host to upgrade. If they decide to do so, the only things you may want to change (you don't have to, but I guess PHP5 won't support the old way though) in your code is to get rid of session_register() and change :
* $HTTP_SESSION_VARS to $_SESSION.
* $HTTP_POST_VARS to $_POST
Then you are up to date with the new globals style.
NO COOKIES!