Here's the situation...I'm running php 5 on my local SUSE 10.1 machine. For my remote host, I'm using a Unix box that's also running PHP5 (hosted by Dreamhost).
I have an extremely simple script to handle stylesheets using $_SESSION variables. Basically the script does this:
Check for a stylesheet in $_SESSION['screen-style']
If not found, check for a stylesheet in $_COOKIE['screen-style']
If still not found, use the default value, assign it to $_SESSION['screen-style'] and setcookie('screen-style', 'stylesheet.css', time()+606024*30)
Basically, I want the user's stylesheet preference to be stored on their system for 30 days so if they come back they will see the same theme.
This works as expected on my local system, however, when I upload to the remote host it doesn't work.
What it does:
- The session variables are handled fine
- The theme displays properly for the entire session
- The cookie is showing in the browsers cookie list (with the correct value)
What it doesn't do:
- retrieve the cookie
Keep in mind, it works as expected on my local system, just not on the remote host. When I echo $_COOKIE['screen-style'] I get a blank (or NULL) value.
I didn't find anything on Google, and Dreamhost insists that nothing on their side is disabled that would cause this.
Any ideas?