I've been trying to convert an old perl script into php4 since it's current state is a mess and it's very difficult to work with whenever I need any changes done, plus it's wasting a lot of code on unneccesary stuff. It uses cookies to keep track of a user id needed throughout the script. I'm thinking about using php4's session management to save and restore the uid between pages. I'm assuming this is really using cookies behind the scenes even though I didn't see it say anywhere. The problem is I need to be able to detect if a browser doesn't support cookies. The perl script does a nice job of this by setting the cookie if it isn't set then sending a redirect to itself passing setuid=yes, then, if the cookie still isn't set it decides whether or not it is critical to the current operation (i.e. it's not critical if the user is only browsing as opposed to adding a new item to the cart.) and prints an error message describing the problem and how to enable cookies in both ie and netscape. I would like to do this in php4, is there an easy way?