It seems PHP can't set cookies when SSIncluded. I have the same problem when trying to set a (non-session) cookie.
Duncan wrote:
I'm trying to start a PHP session by using the script as a server-side include. It seems to start the session ok except that it doesn't even attempt to set the session id cookie. When I call the script directly, it attempts to set the cookie so I know that PHP is correctly set up to automatically attempt to set cookies for sessions. I really need it to set the cookie otherwise the session doesn't do much good. I've tried to place the virtual include at different points in the document but with no success. It doesn't even give me an error message! Any help would be much appreciated - I'm really aggravated!